CSS Menu Designer vs. DHTML Menu...

User 2034657 Photo


Registered User
64 posts

I've been using VSD for a few projects, and I am still unresolved regarding the best approach to designing and implementing navigation menus. I think I need some good advice on this issue because I am still unclear on the merits of the alternative approaches.

My experimenting and progression has been as follows:

    1. I began by placing simple buttons on my pages with links to other pages. My projects then became more complicated, and I needed to include submenus.
    2. I then purchased CC Flash Menu Builder; however, the look and format was not adequate for my needs.
    3. I then downloaded the CC DHTML Menu Builder and had good success. I was able to design menus, copy code to my VSD pages, and I was pleased with the results.
    4. Then one of my projects grew to almost 40 pages. Using the DHTML Menu Designer, whenever I made a change to the menu, I had to delete old code and copy new code to every page in the site. Obviously, this becomes tedious when a website grows.
    5. To make changing menus easier, I then decided to try developing menus in CSS because I was under the impression (perhaps falsely) that when using CSS, one only had to make changes in the CSS file, and those changes would then apply to all pages that were linked to the CSS.
    6. I just purchased CC HTML Editor to take advantage of the CSS Designer. I used the CSS Designer to develop the code for my menus. The designer created code which goes into the <head> section for the link to the CSS and code which goes into the <body> section for the menu code.
    7. I read the instructions for using the CSS Menu Designer, and the instructions say to copy the codes to the appropriate sections of your pages on each page.

My question is: I am probably missing something obvious here, but it appears to me that there is little or no advantage of using the CSS Menu Designer if I must copy code to every page similar to what I had to do with the DHTML Menu Designer. Perhpas there are other advantages of using CSS that I am not aware of, but what am I missing here? Should I stay with the DHTML Menue Designer? Should I advance to CSS?

Isn't there an approach of designing menus that would preclude one from copying the same code to every page in a site? I know there are sites with hundreds or even thousands of pages, and I can't imagine that one would have to copy and paste code to every page when a simple change is made.

I aplogize for being a bit of a dummy here, because I'm sure there is a solution to my dilemma. I would appreciate any help you can provide.

Thanks,
John H.
________________________________
A good mind is like a sponge in water.
User 562592 Photo


Registered User
2,038 posts

Yes. It is called SSI (or, server side includes). Basically you put a menu into a html file (with just the menu code), then you use the SSI code in every page you want the menu to appear in the spot you want it to appear. Then when you want to change the menu you do it to one page instead of 40. Google Server Side Includes to learn more. That is the answer my friend. Been using it for a couple years now and it works great.
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

User 562592 Photo


Registered User
2,038 posts

There is one disadvantage though. You can only preview the menu on a live site (hence "server side"), but its worth it if you only have to write one code for the menu.
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

User 2034657 Photo


Registered User
64 posts

Thank you, Eric. I will investigate the SSI you referred to.
John H.
________________________________
A good mind is like a sponge in water.
User 2034657 Photo


Registered User
64 posts

Eric, you may have created a monster here! SSI is exactly what I was looking for. I've been able to get a DHTML-designed menu to work, and now I'm moving on to headers, footers, and logos, etc. Thanks, again, for the great tip.
John H.
________________________________
A good mind is like a sponge in water.
User 562592 Photo


Registered User
2,038 posts

LOL. No problem. It was answered prayers for me too, when I first found out about it. By the way, not a lot of people know about it - I am surprised.
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


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.