This project is read-only.

Menu item not highlighted when I open a page with an associated taxonomy

Topics: Core, Customizing Orchard, Writing themes
Feb 13, 2014 at 6:14 PM

I am working on my company's theme for our Orchard site. I noticed an issue involving Taxonomy navigation.

I have a main menu based on Taxonomy. The "news" menu item links to the "News" taxonomy field. I've associated a page with that "news" field. If I click on "News" on the menu, it highlights correctly and shows me a list of items with the "news" taxonomy field. However, if I go to any of those items, the "news" menu item isn't highlighted anymore.

I want to make sure the user knows we're in the "news" section of the site, so how do I keep "News" highlighted on the menu?

Feb 14, 2014 at 9:39 AM
You can use a client script to add "active" class (or whatever, you can check the class name when you go to the list of contetn items using the menu) to the menu item you want to highlight.