In this particular case, I want to set all blog nodes to literally highlight a "blog" menu item. That is, set the menu item to active rather than active-trail. Context has a reaction to set the active menu item, however it only sets the active state, not the active-trail. I figured I'd just set a Menu Position, then apply the active menu state to that menu item using Context and Bob's your uncle. Unfortunately it seems that Menu Position causes the active menu context to not set correctly.

I'm not sure if the solution is to adjust Menu Position to allow Context to set the active menu or to provide an option within Menu Position to set the selected menu item as the active item rather than the parent item.

I was previously using the patch here http://drupal.org/node/835090 to set the active-trail using Context, but it seems increasingly likely that this patch will never make it into Context module so using a dedicated module like Menu Position seems to be a better option. The situation of setting active-trail is something I come across every site build and this module is going to make things so much easier. Thank you.

Comments

lahode’s picture

Hi,

Wonderfull module!

Why not having linked it to Context as a submodule?

Cheers

dalin’s picture

Version: 6.x-1.0-beta1 » 7.x-1.x-dev
Category: bug » feature

This is a great module, but I agree with the other posters. I have to duplicate my pre-existing contexts for this module. Instead of creating its own context-like system it would be better for Menu Position module to just hook into Context module.

JohnAlbin’s picture

I would love for there to be Context module integration. Patches welcome!

Either you could create a (soon-to-be-CTools) plug-in for menu_position that integrates with Context. Or you would create a sub-module for this project that worked in Context's UI and called menu_position's APIs to do the work.

JonMcL’s picture

There appears to be a movement afoot in the Context module to provide Menu Position as a reaction. Not sure if the implementation there is as complete as the Menu Position module.

#835090: Context Reaction: Set menu trail