Dynamic pages

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
fly2pete
Forum Members
Forum Members
Posts: 11
Joined: Mon Dec 25, 2006 11:18 am

Dynamic pages

Post 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
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Dynamic pages

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Dynamic pages

Post by Dr.CSS »

Best to use UDT for php...
fly2pete
Forum Members
Forum Members
Posts: 11
Joined: Mon Dec 25, 2006 11:18 am

Re: Dynamic pages

Post by fly2pete »

I will try the UDT method

Thanks

peter :)
Post Reply

Return to “Developers Discussion”