adding a PHP tag within the page

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
scotch33
Dev Team Member
Dev Team Member
Posts: 285
Joined: Tue Feb 14, 2006 9:56 pm

adding a PHP tag within the page

Post 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?
cyberman

Re: adding a PHP tag within the page

Post 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  ;) ...
jelle

Re: adding a PHP tag within the page

Post by jelle »

It may be more geared towards including templates, but maybe the smarty {include ...} tag can be of any help to you? 
Post Reply

Return to “CMSMS Core”