updating dhtml menu bar

Home » Forums » Free DHTML Menu Builder » updating dhtml menu bar


Trial User
3 posts

I have created a menu bar with DHTML Menu but want to know if after I have put on every page is there a way if I need to change menu items it can be done once rather than update on every single page it is used?


Senior Advisor
2,037 posts

Not through the program itself. However, with that said: depending on how skilled you are in html there is a method called SSI (Server Side Includes). SSI allows you to have one html page with a menu on it and then upon changing that menu it changes the menu on all of the pages.

The idea is this: you create one page with only the menu html on it. Then you include a code on all of the html pages that you want your menu to appear on using this code:

<!--#include virtual="insertthisfile.html" -->

Note: you must put this code exactly where you want your menu to appear. And of course change the file name above "insertthisfile.html" to reflect the file name of the menu.

Finally, you have to rename your file endings that have the menu include from (.html) to (.shtml). The shtml tells the server that there is another file to include (your menu).

For more information you can google: "html server side includes".

Hope this helps. :D

The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com


Trial User
3 posts

I am using VSD so is it something easily done within VSD?


Senior Advisor
2,037 posts

I believe VSD has an html tool, so all you have to do is put the include code in the html tool. However, you will have to create at least one page thats just html (apart from VSD). You can use the html editor by CC - this is where you would place your menu.

If changing a menu is going to be a huge pain, then I would suggest doing the aforementioned method, otherwise you may have to just manually change every page. :D The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com


Trial User
3 posts

How do I rename the files to .shtml?


Senior Advisor
2,037 posts

file > save as: yourfilename.shtml

The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com


Ambassador
1,058 posts

anthony wrote:
I have created a menu bar with DHTML Menu but want to know if after I have put on every page is there a way if I need to change menu items it can be done once rather than update on every single page it is used?


You don't need to use includes to do this with the DHTML Menu. Just place the javascript in an external file linked to your pages. This way you don't have to change your page name extensions from .html to anything else, and simply updating that one .js file will affect the menu for all pages using that javascript.

http://www.coffeecup.com/forums/dhtml-m … avascript/


Senior Advisor
2,037 posts

Cary wrote:
anthony wrote:
I have created a menu bar with DHTML Menu but want to know if after I have put on every page is there a way if I need to change menu items it can be done once rather than update on every single page it is used?


You don't need to use includes to do this with the DHTML Menu. Just place the javascript in an external file linked to your pages. This way you don't have to change your page name extensions from .html to anything else, and simply updating that one .js file will affect the menu for all pages using that javascript.

http://www.coffeecup.com/forums/dhtml-m … avascript/


Not sure how well a sitemap or search would read the external javascript. Also not sure how well, google would find the menu. Just a caution. The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com


Registered User
2 posts

how do i recreate the *.mnu file,for i lost my only copy. can i save it off my webpage?


Senior Advisor
5,328 posts

No that file is specific to the menu builder. I always upload mine to the server along with the other code required for the menu so I have a backup. Did you check your server to see if you happen to upload it.:) I can't hear what I'm looking at when it's so easy to overlook something I'm not looking for.
Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.