Jump to content

Make menu/page editing dynamic


blinton25

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.