Jump to content

Archived

This topic is now archived and is closed to further replies.

blinton25

Make menu/page editing dynamic

Recommended Posts

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]

Share this post


Link to post
Share on other sites
You would most likely get more replys if you posted the actual code.

Share this post


Link to post
Share on other sites
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!!!!)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.