3

I have set main menu items expanded but when I print them in page.tpl.php($main_menu) there are no children for menu items.How can I make them expanded?

  • If this is a theming question, you should state the name of the theme you are currently using, and perhaps if dropdowns are a big deal for your theme to select one that uses dropdowns to begin with - e.g. drupal.org/project/acquia_marina – wiifm Aug 1 '11 at 6:05
  • @wiifm: It's my own theme – Nick.h Aug 1 '11 at 9:24
4

That depends on the theme you're using. Unfortunatelly, some of them -- including the Dupal's default Bartik -- don't display children in the main menu.

You can either install a theme that does display menu children, or -- if you are using Bartik -- you can make use of the Drop-down menus subtheme for Bartik or follow the HOWTO create dropdown menus for Bartik in Drupal 7.

4

Go to admin/structure/menu/manage/main-menu and edit the parents that have children that you wish to show, and click the tickbox 'show expanded'

Or alternatively install the module http://drupal.org/project/menu_expanded which brings back the tickbox on the menu 'list items' page ala drupal 6

Hope this helps

  • In the question NKmhr says he has "set main menu items expanded". I'm afraid the problem is rather the theme, which won't show menu children even when parents are set to expanded. – Jan Tomka Aug 1 '11 at 4:47
1

If you are loading your menu via page.tpl and it doesn`t have children viewed - you can add it via block and it will have ones.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.