I am having an issue getting this to work on a multi-level hierarchical menu. I have a menu "Primary Navigation (new)" (not to be confused with the default primary menu), and it looks like:

Primary Navigation (new)
- Topics
--(about 9 topics
- Multimedia
--Video
---Featured
---Series
---Categories
--Galleries
-About Us

My block menu's settings are as follows:

Parent Item -
Menu: Primary Navigation (new)
Item: ---Video
Starting level: 1st level (primary)
Checked "Make the starting level follow the active menu item."
Starting level will be: Active menu item
Maximum depth: 1
Checked "Expand all children of this tree."

The page I place this menu block in is a panel at the path "mysite.com/video/series/%argument"; so I've setup a context up to use "Condition" path "video/series/*" and "Reaction" menu active trail at the "Series" menu item. When I visit "mysite.com/video/series/name-of-series", it doesn't work.

To rule things out, I created an entirely new system menu called "Video Sorts", a duplicate of menu items of everything under "Video" of the "Primary Navigation (new)" menu (so... Featured, Series, Categories). When I did this, the 'active-trail' class is applied and it is working just as it should.

Am I missing something? I am using Drupal 6.20, Context 6.x-3.0, and Context: Menu Block 6.x-3.0.

Comments

Mark Trapp’s picture

Status: Active » Postponed (maintainer needs more info)

What happens when you change Maximum depth to 2 (or more)? I believe the issue is because you're trying to set a menu reaction on a menu item that's at depth level 2, and Menu Block isn't providing any information about menu children past level 1.

naero’s picture

Mark Trapp:

Thanks for your reply.

Changing the 'maximum depth' had no effect on adding an 'active' class tag.

Any other ideas?

valderama’s picture

fyi, I think I have the same problem on D7.

My situation is like this: I have 2 menu blocks; first menu shows first level; second menu shows 2nd and 3rd level. Everythink works fine, as long as the target menu item is within the first hierarchy level.

UPDATE: sorry for posting! I found the solution in this issue http://drupal.org/node/1081840 (had to check Expand all children of this tree)

MarcGuay’s picture

Exactly the same problem as described above with:

Drupal 7.2
Context 7.x-3.x-dev
Menu Block 7.x-2.2
Context: Menu Block 7.x-3.x-dev

Mark Trapp’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

#4, Exactly the same problem as who? #3 fixed their problem: did you try that?

I can't reproduce this. If you can provide any more information about the problem other than it doesn't work, or supply a patch, feel free to re-open.

MarcGuay’s picture

Hi Mark,

Same problem as #3 and resolved in the same fashion. Thanks.