View Full Version : Help - Complex Site Menus (what a nightmare!)

Dec 23rd, 2009, 05:36 AM
Hi guys,

I have been looking for a solution for weeks but simply cannot find one. I have a page on my site with a rather complex menu. Right now it is all hard coded which is an absolute nightmare to update when needed. There are over 20 pages using the same menu so when I make a change I need to edit 20 pages.

This is the page in question: http://www.forex4noobs.com/forex-education/

You can see on the left hand side I have a long menu with several options. Some of those menu tabs have sub tabs (you can see this under ‘Green Belt’ ‘Common Indicators’). I need a fully functional menu that can:

1. Have hover classes
2. Show a selected tab as highlighted or different in some way from the unselected tabs.
3. Have sub tabs that are hidden until the parent tab is clicked.

I would use includes (and I do to an extent) however way too much CSS is involved in making the menu function with a single include. The main issue is showing a certain tab as selected requires a separate class name for each tab which just leads to bloated code. Therefore I cannot have a single .inc.php file.

Is there any solution to this? I rather not use JS but if I do I would need it to degrade nicely.

Thanks for the help.
NickBe is offline Reply With Quote

Dec 23rd, 2009, 08:13 AM
Start with fixing the errors in your markup, see http://validator.w3.org/check?uri=http%3A%2F%2Fwww.forex4noobs.com%2Fforex-education%2F&charset=%28detect+automatically%29&doctype=Inline&group=0