Closed (works as designed)
Project:
Menu Block Split
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2007 at 17:50 UTC
Updated:
15 Dec 2007 at 18:12 UTC
There is a bug in the module where the highest menu level loose the "active" status.
Repro:
1. Create a primary menu like:
Level 1
-- Level 2
----Level 3
2. Save a menu split block with "Primary links".
3. Assign block mbs-2nd to left sidebar.
4. Click on "Level 2" to expand the menu.
5. Now the menu point "Level 1" looses it's "active" status.
Expected result:
1. "Level 1" should be "active" whatever level i'm clicking in inside this menu tree.
Comments
Comment #1
hass commentedIf Level 2 get's active the same happen, too. Level 1 is no more active.
Comment #2
robertgarrigos commentedmmm maybe I don't understand but it really stays active all parent levels of the actual active menu. This is a normal drupal behavior:
when Level 1 gets active it has something like class="menu-1-1-2-active active"
when level 2 gets active it has something like class="menu-2-1-3-active active" while its parent remains as class="menu-1-1-2-active"
same happens with level 3.
other menu entries get only class="menu-x-x-x"
However, if you want to keep an 'active' class for all parent menus for the active trail, you can override the theme_menu_item() function with something like this: