PHP code in page content

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.
Locked
marvado

PHP code in page content

Post by marvado »

How can I insert PHP code inside the content of a page
I tried tags and it didn't work. CMS apparently comments it out the tags as soon as it saves.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: PHP code in page content

Post by calguy1000 »

Two methods: 

a) Use a user defined tag (this is the preferred method)
b) surround your php code with {literal} and {/literal} tags.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
marvado

Re: PHP code in page content

Post by marvado »

thanks!

{literal} works fine!
Locked

Return to “CMSMS Core”