Creating a global menu

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default Creating a global menu

    Have an existing website that I want to set up with Contribute. There's a main
    menu on the left with 10+ links (clickable images). Each page has an expanded
    menu as well - lot of content.

    Would like to save this menu as a separate file, define the menu area as an
    editable region & just have that menu file placed there. That way where there
    is a change to the menu, I only need to modify the one menu file and it will
    change the site globally.

    Want to do the same thing with images (header & footer) to allow for global
    changes if necessary.

    What's the best way to do this?

    inte_rupt Guest

  2. Similar Questions and Discussions

    1. who can build macromedia global nav flash menu for me?
      hello i want macromedia global nav horizontal flash menu for my site. i want excatly the same as it. i need .fla with full customization over...
    2. Creating a sub-menu
      I'm trying to create a horizontal menu with three options. When you roll over one of the options another horizontal menu appear below with different...
    3. Error 80004005 when creating recordset object in ASP file, but works fine in Global.ASA
      For some reason I am getting an error when trying to open a recordset on an Access database on my Win2K3 machine from my INDEX.ASP page, but the...
    4. [PHP] problem: creating global alias inside function
      > -----Original Message----- PHP actually handles this by executing the equivalent of: $globalvariable = &$GLOBALS; -- that is, it creates a...
    5. Creating session variables in GLOBAL.ASA ???
      Hey all In my GLOBAL.ASA file I'm trying to create a session variable for reference in the various webpages of my site.... Sub Session_OnStart...
  3. #2

    Default Re: Creating a global menu

    Create a SSI (with PHP f.i.), best in de root of the site, considering the way
    Contribute is handling linking.
    Call the file something like menu.inc.php, footer.inc.php, etc....
    Provide your client with the url to menu.inc.php in the Bookmarks or explain
    the Choose-button in Contribute to open the file menu.inc.php.
    Keep the file simple (ul/li or p) .

    ThinkInk Guest

  4. #3

    Default Re: Creating a global menu

    As the site is already created from MANY html files, I'm wondering if there's a
    way to do it in HTML

    The menu is composed of graphics which are all in a table cell.

    Is there a way to simply create this menu in a separate file and have that
    file inserted into that table cell?

    Inline frames would probably work, but is there a cleaner way?

    inte_rupt Guest

  5. #4

    Default Re: Creating a global menu

    Create a normal Template, but make it a PHP template (template.dwt.php) as you
    normally do (make sure your provider supports php).

    Cut the code of the menu from the template and past it into a new file called
    menu.inc.php.

    Now place this code where the menu was: <?php include("menu.inc.php"); ?>

    That's all there is to it.

    ThinkInk Guest

  6. #5

    Default Re: Creating a global menu

    Awesome!

    Any tricks to making these templates? The "new" file dialogue box has options
    for "HTML template" and "PHP", but none for PHP template.

    Can I used use one of the above & simply rename it with the filename mentioned
    below?

    [q]Originally posted by: ThinkInk
    Create a normal Template, but make it a PHP template (template.dwt.php) as you
    normally do (make sure your provider supports php).

    Cut the code of the menu from the template and past it into a new file called
    menu.inc.php.

    Now place this code where the menu was: <?php include("menu.inc.php"); ?>

    That's all there is to it.[/q]



    inte_rupt Guest

  7. #6

    Default Re: Creating a global menu

    When you use include files you need to be carefull in how you create your site
    considering the links to the includes.
    The include path in the template is always the same, so the page of your
    website all should be at the same level (all in the root, or all in specific
    folders one level deep, etc...)

    ThinkInk Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139