After applying a few patches trying to get some integration with the views module I found that the feature of the taxonomy_menu to display the active menu trail in the header menu was not always desireable so I put together a quick patch to allow a site admin to toggle off the display of active menu items in node view context.
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy_menu_node_context_0.patch | 1.69 KB | tbartels |
Comments
Comment #1
tbartels commentedComment #2
indytechcook commentedThank you tbartels. tbartels, please give a example the use of this functionality.
Can someone please verify this patch? Do you want to see this as part of the release?
Comment #3
indytechcook commentedThis is part of the latest DEV. Please test.
Comment #4
tbartels commentedThe default functionality of the module was to highlight the best match menu item for the current node. So if you are viewing a page/blog that is tagged with a term that matches your taxonomy menu item it would be active. For example, if you had a taxonomy_menu of 'Cars','Boats','Trains' and 'Airplanes' and you were viewing a node that was tagged as 'Trains' then the menu item would be active.
In some cases it is undesirable to have the menu highlighted unless you are on the exact path that the menu refers to. So by unchecking "Display in Context" the menu item will only be marked as active when the page/view defined by taxonomy_menu is the current page.
I can make some screen shots of the two states if you want, just say so here.
Thanks.