Alternatives to php include for menus

Discussion in 'Programming' started by morpheus, Jan 7, 2009.

to remove all ads.
  1. morpheus

    morpheus New Member

    Messages:
    11
    I'm looking for an alternative to php include for updating menus. I have clients who like to update their sites and can handle adding and changing their own content in a HTML program. If I use php include and make them php files to call menus all referring to menu.php, they will then have trouble editing php files.

    Can anyone suggest alternative approaches? Thanks
     
  2. ahk2chan

    ahk2chan New Member

    Messages:
    81
    OK... it sounds very like that you need some kind of CMS (content management system). Because if it is just menu items, maybe you can simplified the process a bit (like putting the menu items in static JavaScript file, or even put those data in the database). However, if your client need to update content (graphics, layout....) I tink CMS is unavoidable. A hot CMS engine these days is Joomla, but never get my hands on it yet :p
     
  3. morpheus

    morpheus New Member

    Messages:
    11
    Thanks for the suggestion. I've been learning Joomla, although I doubt I'll want to use it for all projects. I'd still like to find some other options ...
     
  4. ahk2chan

    ahk2chan New Member

    Messages:
    81
    When you say some other options, what do you mean? Like another CMS platform? or actually another approach? <- as in home-grown a simplified CMS-like system?
     
  5. morpheus

    morpheus New Member

    Messages:
    11
    Nope, I already know about the CMS solution. I mean another approach to get a similar result. One way is to use flash, but I prefer not to do that for critical site functions. Other options?
     
  6. zkiller

    zkiller Super Moderator Staff Member

    Messages:
    1,639
    Could always build a custom CMS of your own. :)

    Basically for ease of client based editing, you will need to use a database and populate your menu from it. A simple admin area would then be needed for user to be able to add, edit or delete menu items. It's quite simple really.
     
  7. morpheus

    morpheus New Member

    Messages:
    11
    Quite simple?! lol ... might be something to consider in the future.

    I've discovered that there are other ways of using an include function, not just with php. Ideally I'd like to use it in a format that is less threatening for clients who want to do edits later. Now looking into a ssi with shtml format, although I can't get it to work yet. Php include works easy ... mostly.
     
  8. morpheus

    morpheus New Member

    Messages:
    11
    Shared hosting. What kind of software do you have in mind?
     
  9. JayT

    JayT New Member

    Messages:
    35
    I think we all started out using ssi includes on shtml pages, but we quickly learned (as you are now) that you can't always accomplish what you want to with ssi's. So, you may as well start right now learning php and mysql databases.

    Like zkiller said, this would be a simple project using php and a mysql database.
     
  10. morpheus

    morpheus New Member

    Messages:
    11
    Is anyone else having trouble viewing the second page of this thread?

    I've found ssi a little easier to work with as it displays locally without uploading, when it comes to only using this feature.

    I'd like to hear some comments on the benefits of using php over ssi/html.
     
  11. designsatlanta

    designsatlanta Banned

    Messages:
    14
    Thanks for the suggestion. I've been learning Joomla, although I doubt I'll want to use it for all projects. I'd still like to find some other options ...
     

Share This Page