Navigation menu script

Discussion in 'Programming' started by robi3, Jun 20, 2008.

  1. #1
    Hello,

    I need a script or please suggest me how make a correction in my menu links at once for all my webpages. (I have many HTML pages and I don´t want to make a modification of my links in each page individually).

    How can I solve this ? Need a script or something else? I´m using Frontpage 2003.
     
    robi3, Jun 20, 2008 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    If you don't want to go to php for your sites. Best bet would be to either use a scripting language or find a text editor that does mass search/replace. Latter option would require downloading the files, processing etc.
     
    shallowink, Jun 20, 2008 IP
  3. nastynappy

    nastynappy Banned

    Messages:
    499
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think you are asking for this:

    You make edits in menu.php file, it should affect the menu links on all pages.
    Am I right? Of course I am :p
    You need to code a menu file in PHP, and use a simple code to show it on every page.
    You dont need to code whole site in PHP, just menu.php
    It will highlight the currently active menu link too.

    Well, for this, read this tutorial.

    Step 1 - Highlight Current Active Navigation Link - Step 1 - Xhtml and Css
    Step 2 - Highlight Current Active Navigation Link - Step 2 - PHP

    Thank you
     
    nastynappy, Jun 20, 2008 IP
  4. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #4
    And just how are the HTML pages going to pull in that menu.php file? Even if he has the webserver parse .html as php, it will require editing the existing files to include the menu.
    Did forget another option, SSI, but that's the same requirements as using php.
     
    shallowink, Jun 20, 2008 IP
  5. nastynappy

    nastynappy Banned

    Messages:
    499
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    er.. rename them to .php from .html
    no harm will be done to code..
    the html coding will remain intact. ( ull need to change page.html to page.php from <a href= tags)
     
    nastynappy, Jun 20, 2008 IP
  6. robi3

    robi3 Active Member

    Messages:
    300
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Thanks for your help.
    In the meantime I find this : http://www.izzymenu.com/
    What do you think about that ?
    I´m also not sure if this menu builder is SEO friendly or not ...
     
    robi3, Jun 20, 2008 IP
  7. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #7
    That looks pretty cool for making menus quickly. The SEO aspect has more to do with the URL format something like
    domain.com/page=45 versus domain.com/the_best_article_on_the_planet.php
    It won't help with the ultimate issue you have with building a single source nav system.
     
    shallowink, Jun 20, 2008 IP