is it possible to insert php into a cmsms template?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Snigx
Forum Members
Forum Members
Posts: 30
Joined: Wed Dec 30, 2009 2:31 pm

is it possible to insert php into a cmsms template?

Post by Snigx »

Im trying to figure out how to use cmsms, amongst other things if it is possible to insert a php script into a cmsms template?

When in the cmsms control panel can I use something like the {literal}{/literal} tag to insert php directly as with javascript?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: is it possible to insert php into a cmsms template?

Post by RonnyK »

I normally put the php-logic in a User-Defined-Tag, without the -end and call the UDT in the template...

Ronny
Snigx
Forum Members
Forum Members
Posts: 30
Joined: Wed Dec 30, 2009 2:31 pm

Re: is it possible to insert php into a cmsms template?

Post by Snigx »

ok,.. then another one:

how can I figure out where a tag is defined? Say we have this tag {Cart action='mycart'} and I would like to go and see what exactly it does? (as you probably know its from the cart mdoule)
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: is it possible to insert php into a cmsms template?

Post by RonnyK »

It could either be a module-call, a tag-call, or a UDT-call. There is no direct distinction what it is.

Ronny
Snigx
Forum Members
Forum Members
Posts: 30
Joined: Wed Dec 30, 2009 2:31 pm

Re: is it possible to insert php into a cmsms template?

Post by Snigx »

so if I would like to locate the source it would be necessary to start from the beginning and go through files? Or is there a file in particular where such tags would normally be?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: is it possible to insert php into a cmsms template?

Post by RonnyK »

Well,

Modules are listed under Extensions -> Modules
Tags are listed under Extensions -> Tags
UDT's are listed under Extensions -> User Defined Tags.

So visible inside the backend...

Ronny
Snigx
Forum Members
Forum Members
Posts: 30
Joined: Wed Dec 30, 2009 2:31 pm

Re: is it possible to insert php into a cmsms template?

Post by Snigx »

ok well ill try some more... thx for your time :)
Post Reply

Return to “CMSMS Core”