Page 1 of 1

Dynamic pages

Posted: Fri Aug 01, 2008 6:22 pm
by fly2pete
I need to generate a page with dynamic content based on data from tables in a database.

Is it possible to embed the php code in a cmsms standard page or would it need a module creation approach to get it processed in the background ?

I could always create seperate web pages, but that defeats the object of the cms.

Peter

Re: Dynamic pages

Posted: Fri Aug 01, 2008 9:20 pm
by duclet
First, make sure in the config.php file you set the setting to allow PHP in the code. Then, in the content block of a page, anything put between {php} and {/php} will be parsed as PHP. Or, you could also use a user defined tag.

Re: Dynamic pages

Posted: Fri Aug 01, 2008 9:21 pm
by Dr.CSS
Best to use UDT for php...

Re: Dynamic pages

Posted: Fri Aug 01, 2008 10:33 pm
by fly2pete
I will try the UDT method

Thanks

peter :)