DHTML Menu Studio FAQ

Question ID:
Q3042
Question:
I want to embed a menu into multiple pages. Does each page need to be updated after a modification in the menu?
 
No, you can set up your menu system so that you don't have to update your web pages at all if the menu changes (e.g. if you change the menu's structure or looks).
The strategy depends on which web development software you're using for your website. If you follow DHTML Menu Studio's assistant, you will be guided through the whole process -- below are listed your options:
  • Server-side inclusion: Generally, whenever possible (if the web server supports it), the best solution is to use server-side based includes (e.g. PHP / ASP / ASP.NET / SSI / JSP / ColdFusion includes). This way all of the menu code will stay in separate files and all changes to the menu-specific files will be automatically reflected on all the web pages which include this code.
    To use server-side includes:
    • In "options / output / output format" set the desired inclusion method.
    • Then, make sure that "options / output / menu files directory" is set to an ABSOLUTE http path (e.g. /menu or http://mysite.com/menu) so that the scripts and images can be properly referenced from every web page containing the menu.
    • The other output directories (output directory for HTML files and for menu files) will be where the output files will be created. You have to make sure that these files are copied to the directory which is referenced by the web server by the name specified in the 'menu files directory' option.
    • Generate the output files by choosing the following menu item from program's main window: "Menu -> Generate Menu -> Copy Paste code". You will be presented with a piece of HTML code. You will need to place this code on every page (in the body section) in the place where you want the menu to be displayed.
    • If the menu doesn't work (popups don't expand or images cannot be loaded), it means that the output directories haven't been correctly set or the output files (includes, JavaScript or image files) cannot be found on server. For further help, see this FAQ question.
  • FrontPage web-bot includes: you can follow the instructions above for server-side includes but set 'options / output / output format' to 'Front Page template'. You can then include the menu into FrontPage pages by using FrontPage's web-bot includes.
  • DreamWeaver template: In case of DreamWeaver, if you don't wish to use server-side includes because you already have a DreamWeaver template, you should import this template into DHTML Menu Studio. The easiest way to do this is to follow the assistant which explains the process step-by-step. Please also see the instructions above for setting directories in "options / output".