www.webdeveloper.com
Results 1 to 5 of 5

Thread: Question regarding the menu on web site

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    3

    Post Question regarding the menu on web site

    Hi,

    I have to upgrade old web site, the one big problem is menu on the right side.

    It has at least 20 menu buttons - pages, and when they need to do simply update, they need to update each (20) pages.

    I would like to put something, which will remove that each page has it's own menu, something like single file to update and that will reflect to all pages.

    What is the best thing to do, can you give me some directions, links, or any help.

    I can provide more info, just let me know.

    Thanks

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    You need a server side include. What kind of server side scripting do you have? SSI? Perl? PHP?
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    May 2009
    Posts
    3

    Post Server side

    PHP,

    what is the best way to put this because I am not so familiar with PHP

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    You'll need to rename your pages with a ".php" name extensions, or you can change that with the serer configurations. Put your menu in a file in your root and use something like:
    PHP Code:
    <?php @include $_SERVER['DOCUMENT_ROOT'].'/menu.inc' ?>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    May 2009
    Posts
    3

    Post OK, but

    Thanks for that, I will sure try that, can I ask you what will happen to those pages with integrated menu, How will they look after I remove menu form subpages.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles