I've a site with a main menu, and submenus as block. If I'm on node "50" I want to hide every submenu, except the submenu with the link to node "50".

Question: How can I hide a block based on it's variable menu_name (I think it is this variable) without javascript.

Here's a wireframe, so you can get an overview.

1 Answer 1


I use Menu Block for this purpose. You can specify which levels of which menu you want to show, and the blocks display conditionally depending on the current active trail.

  • It was exactly the module I was looking for. Thank you Danielle for saving time :)
    – JohannesM
    Apr 27, 2012 at 20:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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