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.

CommentFileSizeAuthor
taxonomy_menu_node_context_0.patch1.69 KBtbartels

Comments

tbartels’s picture

Category: task » feature
indytechcook’s picture

Thank 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?

indytechcook’s picture

Status: Needs review » Fixed

This is part of the latest DEV. Please test.

tbartels’s picture

The 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.