I have written a plugin for a condition that sets the context depending on how deep the page is in the menu trail. I know there are others looking for this condition (see #894226: Set condition based on *level* of a menu?) so I would like to share the code. Before I start developing a patch for Context, I just want to know whether this is something that has a place in the main module or would it be better somewhere else, e.g. Context Plugin Extras?

The condition lets you set a minimum and an optional maximum value for the menu levels at which the context should be active.

Comments

paulocs’s picture

Issue summary: View changes

If you didn't do it yet, please do in a separated module.
Or if you did, please provide the module page. Thanks.

paulocs’s picture

Status: Active » Fixed
paulocs’s picture

Status: Fixed » Closed (fixed)