Closed (fixed)
Project:
Omega
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
7 Jan 2011 at 16:23 UTC
Updated:
11 Jan 2013 at 00:42 UTC
Jump to comment: Most recent
I cannot get drop down menus to work. In the theme settings here is what I have done so far:
Under Menu: Depth of menu to display: set to 2
Under Optional CSS: checked "Enable menus.css" (as suggested when I set the depth of the menu)
... and then in Drupal's Main menu settings, I made sure a parent menu item is "expanded".
If I view my menu with firebug, the full menu tree is not rendering (just top level items) so perhaps there is some other issue. This is on a brand new Drupal 7 clean install.
Comments
Comment #1
himerus commentedEnsure that in your menu settings.... /admin/structure/menu/settings
That BOTH menus (primary and secondary) are set to the main menu you are using.
That "should" do it... can't think of any other reason it wouldn't. Let me know if it works and I can close this out.
- Jake
Comment #2
danny englanderYes, that did it. thanks!
Comment #4
technikh commentedI don't see these options in 7.x-3.0-beta3
Under Menu: Depth of menu to display: set to 2
Under Optional CSS: checked "Enable menus.css" (as suggested when I set the depth of the menu)
How to show dropdown menus in 7.x-3.0-beta3?
Comment #5
fubhy commentedDropdown menus are not part of Omega anymore (and they shouldn't be coded into any theme imo). To add a dropdown menu to your site use one of the many modules.
Comment #6
technikh commentedThanks I used nice menus for the dropdown. http://drupal.org/project/nice_menus
Comment #7
mrP commented@fubhy -- could this be added to the documentation? First, that dropdown menus are no longer coded into Omega; second, an example implementation of something like nice_menus in an Omega subtheme.
Comment #8
2phawhere is the Depth of menu setting?
Or does Omega not output second level menu items in the html list, even if they are expanded?
Comment #9
2phaI'll put this here in case anyone finds it useful.
This is how I implemented dropdown menus for the main menu without a module.
In the process folder I added a file called 'process-region.inc' with this code.
In the templates folder I added a file called 'region--menu.tpl.php' with this code to override the omega theme.
To get the same classes on the menu and menu items I added this to my template.php.
Comment #10
2phaWoops....seems menu_tree_page_data() only returns the lower levels if they are in the active trail.
Maybe use menu_tree_all_data() instead, though you don't seem to get the active classes. :(
Comment #11
Anonymous (not verified) commentedwell this is stupid why not add the dr0p down menu function to the theme?
Comment #12
alexander.sibert commentedI tried your code and it works well. Only the last code works not for me.
Comment #13
alexander.sibert commentedbut i need following Schema:
Comment #14
2phayou are going to have to implement that yourself neofelis1985.
Amend the function above.
Comment #15
fubhy commentedComment #16
originalusrnm commentedWhere are the Menu settings in Omega? Can't find them anywhere.
Comment #17
2phaThere are no menu settings. Some of the comments in this thread relate to an older version of Omega.
If you want dropdown menus you should use a module like nice menus or implement them yourself.