Is there a way to include the main menu of a website in a template or a library item and be able to put a class of active on the current page? Since both templates and library items funciton by applying the whats in them across the entire site, and the active class will only be on an individual page I have been unable to figure out a way to do this.
In CSS, active means onmouseclick (the momentary action of clicking a mouse button when the cursor is pointing to a link).
I think what you're looking for is actually a persistent page indicator.
Yes this is what I meant, though I obviously didn't express myself correctly. I usually name the class "active" or "current" to indicate the page being viewed.
Your link does not answer my question regarding how to do this withing templates or library items though. I suspect that, as usual, a seemingly fantastic timesaver in Dreamweaver will drop the ball in one critical area rendering the feature useless.
Your link does not answer my question regarding how to do this withing templates or library items though
It does the way I read it.
"NOTE: To make the body class editable in a Dreamweaver Template (.dwt), you'll need to specify an editable tag attribute in your Template (click on screenshots below for details)."
There is also a method that compares the url with the link and if both are the same it will automatically give the menu item an active class.
That method has been used here http://accufire.com.au/
No, it is not the same, but I did not mean to confuse the issue, just supply an alternative if desired.
Nancy's (alt-web) way is to give each of the links a unique class and apply style rules to those classes.
To summarise the differences
Europe, Middle East and Africa