Page 1 of 1

HTML/PHP code in content

Posted: Sat Mar 19, 2005 11:18 pm
by jj
How can I add php and html "code" to the content. It looks like everything is translated as "text"...  for instance if I want to test with in the content page, how do I go about it.

Thanks a lot

Re: HTML/PHP code in content

Posted: Sun Mar 20, 2005 3:08 am
by Ted
To put php code into CMSMS, you either need to:

1. turn on use_smarty_php_tags in config.php and then do {php}phpinfo();{/php}

2. (the more accepted way) go to plugin management, click New User Defined Tag, put phpinfo(); into the code, name it phpinfo and put {phpinfo} into your template/content.

Re: HTML/PHP code in content

Posted: Sun Mar 20, 2005 3:38 am
by jj
beautiful... thx wishy :)