1

When a menu is active, drupal displays the sub-menus of the active menu, but because I use the sub-menus in a separate block via the "menu block" module, I don't want the sub-menu to be shown. How can I do it on server side?

Is there an easy drupal way to do it without touching the theme_menu_link? If not, Is there a way to do it in a module rather in template.php? beside, can some one show me how to write the code?

1

In the Add/Edit menu_block options, you can specify the Maximum depth of the menu tree to 1.

  • So you actually suggest to use menu_block also for the main menu. good idea – Roni Gal Mar 11 '14 at 21:30
  • Yup. It makes working with menus easier. – Randell Mar 11 '14 at 22:19

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.