Hi,

I'm trying to put more than one menu in the topbar and make it dropdown without success, I've been reading the template.php and page.tpl.php and it looks like only main-menu is configurated to dropdown. Is there any way to make my menus dropdown?

Thank you :)

Comments

I'm trying with this modification in template.php:

<?php
function tweme_preprocess_page(&$vars) {
 
$page = $vars['page'];
 
// Build navbar menu.
 
$menu_id = variable_get('menu_main_links_source', 'main-menu');
 
$usermenu_id = variable_get('menu_main_links_source', 'user-menu');
 
$menu_tree = menu_tree($menu_id);
 
$usermenu_tree = menu_tree($usermenu_id);
 
$vars['navbar_menu'] = drupal_render($menu_tree);
 
$vars['navbar_user'] = drupal_render($usermenu_tree);
?>

and this in page.tpl.php:

<?php
if ($user_menu):
?>

<?php
print $user_menu
?>

<?php
endif
?>

<?php
if ($main_menu):
?>

<?php
print $main_menu
?>

<?php
endif
?>

But its not working. Can anybody please help me?

thanks a lot.

Category:support» feature

I would like to be able to put my different menu blocks in the topbar and make them dropdown. I think this would be a cool feature to implement.

thanks.

Agree. Will be implemented in the future release.