I have views block and I want to display its output in sub menu when user mouseover on main menu. I on't know how to implement it. Is there any module for it? Please help tell me how can I display views block in drupal menu?.


4 Answers 4


If you are trying to build a dropdown menu, you can have a look at Nice Menus. This module provides blocks that automatically generates dropdown menus from a selected menu.

If you want to build something more particular than a basic dropdown menu based on Drupal menu system, you should add your block to a hidden region in your html and then move it in the DOM with jquery.

You can do something like that:

// Get menu item
menu = jQuery('#selector .to li');

// Get block
block = jQuery('#block-block-myblock');

// Force hide

// Append the block to the menu item

// Show / hide menu on hover
menu.hover(function(){ // Function to be run on mouse hover
}, function(){ // Function to be run on mouse out

Hope this will help you ! Cheers


If you actually wants to use view to build (part of) a menu with drop-down effect, the Views build menu module may suit your needs when combined with a module like Nice menus or Superfish.


menu_minipanels should be the answer. With this module you can print any block (that comes from panel) under the menu.


Try with the Menu Views module.

This approach is rather simple: Attach a view to a menu item.
There are a few modules out there that really attempt to make mega menus simple, but their UI's are completely cluttered. We designed this module to give the admin the power to attach ANY view to ANY menu item. Once the markup is there, then your theme can style it however it wants.

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.