Results 1 to 3 of 3

Thread: Calling a MegaMenu

  1. #1
    Join Date
    Dec 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Calling a MegaMenu

    1) Script Title: Megamenu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ddmegamenu.htm

    3) Describe problem: Not a problem, looking for a solution.

    I created a megamenu http://www.ewarbirds.org/template.html using the above referenced ddmenu. The majority of my pages are static.
    Can I take the megamenu and put it on a separate static page, then call it from the individual pages? I'm still learning scrpting. My site has over 2000 static pages. (I know, I'm not a php expert). My fantasy is that when I need to make a change to the menu, I make it in one spot and not have to reload 2000 pages.
    How do I do this?
    I thank you in advance.
    Peter

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It really depends on how your pages are rendered. If they are SSI enabled (ie: mypage.shtml), you can use SSI. For PHP (ie: mypage.php), there is PHP's include() function to easily include the contents of a file across pages, and so on. The markup for the drop down menus themselves, assuming they are same across pages, can be embedded this way dynamically from one file and onto multiple pages.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    peterdv (12-09-2011)

  4. #3
    Join Date
    Dec 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default thanks

    Thanks for the input. If they are all static pages, then I need to include the full menu for each page. I've not added php to the site, but is that the only way I can do it?

Bookmarks

Posting Permissions

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