It seems that this module doesn't correctly indicate links in the top-level menu that are in the active trail. I would think that when I am at a page whose menu item is in the second-level split menu block, that the parent menu item in the top-level block should have the "active-trail" class, but this doesn't seem to be happening.

Comments

chadwick wood’s picture

It looks like changing line 157 from

if((isset($v['attributes']) && isset($v['attributes']['class'])) && ($v['attributes']['class'] == 'active-trail')) {

to:

if (strpos($k,'active-trail') !== FALSE) {

... makes it work. I wrote that code by looking at menu_navigation_links() which gets called by menu_block_split_first_level_menu_tree(). menu_navigation_links() indicates that a link is in the active trail by putting "active-trail" inside of the key for the menu item in the array that it returns.

robertgarrigos’s picture

Version: 6.x-1.2 » 6.x-2.x-dev
Status: Active » Fixed

fixed with latest .dev version. thanks

Status: Fixed » Closed (fixed)

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