blinton25 Posted August 14, 2006 Share Posted August 14, 2006 Hello,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] Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 14, 2006 Share Posted August 14, 2006 You would most likely get more replys if you posted the actual code. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 14, 2006 Share Posted August 14, 2006 The sites I have developed recently have been 'single' page - that is you only see /index.php in the url followed by any parameters needed to grab content from a database etc etc.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!!!!) Quote Link to comment Share on other sites More sharing options...
blinton25 Posted August 14, 2006 Author Share Posted August 14, 2006 Hello,The code is attached as newpage.zip. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.