Make menu/page editing dynamic
Posted 14 August 2006 - 11:27 AM
I have some php code (manage_page.php attached) which I use to edit content for web pages and store this content in the database. However when I need to add a new page it involves a manual process of creating a page (e.g. newpage.php attached), adding menu items, and adding the name of the page created to manage_page.php
1. Could you outline a way of making this more dynamic? I am thinking that I should be able to load a single page which would allow me to specify the page name, and which would then create the page, and update a table with the name of the page.
2. How do I make the menu (manage_page.php and newpage.php) dynamic so that the names for the menu options are automatically placed in the menus?
[attachment deleted by admin]
Posted 14 August 2006 - 12:02 PM
Posted 14 August 2006 - 12:12 PM
To create a truely dynamic page as you suggest would require some templating system where you can dictate what elements are in the menu adn which data to grab from your db.
instead of creating a new php page each time have one that can display everything you need (having to produce a new php page each time is almost the same as hving to produce a new html page!!!!)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users