Closed (fixed)
Project:
Menu Block Split
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2009 at 20:51 UTC
Updated:
10 Mar 2009 at 21:00 UTC
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
Comment #1
chadwick wood commentedIt 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.
Comment #2
robertgarrigos commentedfixed with latest .dev version. thanks