Closed (fixed)
Project:
Menu Block Split
Version:
5.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
16 Apr 2008 at 22:45 UTC
Updated:
26 May 2025 at 08:52 UTC
Jump to comment: Most recent
Comments
Comment #1
mediamash commentedi'm looking for this solution too. The Demo site has active classes for each submenu. So i think they have alterd the output for that. Anyone knows how to do that?
Comment #2
Anonymous (not verified) commentedI did not get this working with Menu Block Split.
I found another module: slicedmenu.module who does the trick: http://drupal.org/project/slicedmenu. You get an active class in main- and submenu to use in .css
css example:
#block-slicedmenu-0 ul.menu .active {
background-color: #E97001;
color: White;
}
#block-slicedmenu-1 li a.active {
color: White;
}
Comment #3
mediamash commentedmsn, does the mainmenu remain active when clicking several submenus?
Comment #4
Anonymous (not verified) commentedyes
Try it out on: http://www.mirakel.cmseasy.nl/test
login with: gast / gast
Comment #5
robertgarrigos commentedI achieved that functionality by overriding the theme_menu_item function. This is the actual function I'm using with that theme on the demo site:
You need to add this function to your template.php file in your theme. Change the name of the function escoles_menu_item to thenameofyourtheme_menu_item (look in the handbook for overriding theme functions: http://drupal.org/node/55126). I'm using a class 'actual' in the css to highlight the parent menu item. You can change the name of that class to any other you might be using.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
LRHoek-1 commented#5
I'm trying to achieve this in Drupal 6, but have been unsuccessful so far. Since the theme_menu_item function is fairly different from the one in 5, I just can't figure this one out. Positioning of the menus works fine, but setting a seperate class for the parent of an active child hasn't worked for me yet. Any pointers on this?