Page 1 of 1

adding a PHP tag within the page

Posted: Tue Mar 21, 2006 11:51 am
by scotch33
Hi there,

I am trying to add a php 'includes' tag command within a page to call contents from a file that I use across many sites.  In non CMSmadesimple sites it works as one would expect, however in my CMSmadesimple system it does play.  is there a different way to include code in the system so it runs as normal?

Re: adding a PHP tag within the page

Posted: Tue Mar 21, 2006 1:12 pm
by cyberman
You should use a user defined tag (menu extensions).

Create a user defined tag called 'your_tag', put your code inside and save it. Inside a page you can call now your code with {your_tag} - it's really simple  ;) ...

Re: adding a PHP tag within the page

Posted: Tue Mar 21, 2006 9:05 pm
by jelle
It may be more geared towards including templates, but maybe the smarty {include ...} tag can be of any help to you?