Posted by tahiticlic on July 28, 2010 at 7:44pm
This module allows to embed primary menu in the theme as a tree instead of the first level only.
It keeps classes and other stuffs applied by other modules (Menu Class for instance).
To use it, replace :
<?php print theme('links', $primary_links, array('id' => 'main-menu', 'class' => 'links clearfix'));?>by
<?php print theme('multilev_menu', 'primary-links',array('id' => 'main-menu', 'class' => 'links clearfix'));?>You can also use this code to find the name of your primary links menu :
<?php if ($primary_links){
if ($primary_links_name) $menu_name = $primary_links_name;
else $menu_name = variable_get('menu_primary_links_source', 'primary-links');
print theme('multilev_menu', $menu_name,array('id' => 'main-menu', 'class' => 'links clearfix'));
}
?>Downloads
Project Information
- Module categories: Site Navigation, Theme Enhancements
- Maintenance status: Unknown
- Development status: Unknown
- Reported installs: 20 sites currently report using this module. View usage statistics.
- Downloads: 760
- Last modified: August 9, 2010