This is an advanced template / library items question. We're looking for a best practice.
Given the following type of menu structure:
We would like to put this menu structure into a Library item for inclusion on a variety of Templates. So far so good.
The catch is that we would like to be able to hilight (change the style) of the currently selected menu item - this will be different for each page (the menu item is the website's navigation menu, so each menu item corresponds to a different webpage).
Each webpage is an instance of the .dwt which contains the library item UL menu structure. The problem we're running into is that you cannot work with variables within a library item (or can you?), so we're debating some options about how to set the style of the currently selected menu item in the most efficient way.
What are your best practices? Our objective is to limit the amount of per-page editing required, not "break" the Library item or template functionality (let's not even discuss the option of opening up the html in Notepad or something that doesn't respect the read-only template or library sections), and find the easiest way to be able to update this menu structure in (preferably) just one document (the library item) whenever a new page or section is added to the site.
A tall order? perhaps. Has anyone been down this road before? Please share your experiences.
Thanks in advance, Experts!