Page 1 of 1
is it possible to insert php into a cmsms template?
Posted: Wed Jan 13, 2010 3:04 pm
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?
Re: is it possible to insert php into a cmsms template?
Posted: Wed Jan 13, 2010 3:12 pm
by RonnyK
I normally put the php-logic in a User-Defined-Tag, without the -end and call the UDT in the template...
Ronny
Re: is it possible to insert php into a cmsms template?
Posted: Wed Jan 13, 2010 3:20 pm
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)
Re: is it possible to insert php into a cmsms template?
Posted: Wed Jan 13, 2010 3:28 pm
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
Re: is it possible to insert php into a cmsms template?
Posted: Wed Jan 13, 2010 3:35 pm
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?
Re: is it possible to insert php into a cmsms template?
Posted: Wed Jan 13, 2010 3:38 pm
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
Re: is it possible to insert php into a cmsms template?
Posted: Wed Jan 13, 2010 3:58 pm
by Snigx
ok well ill try some more... thx for your time
