Download & Extend

Multilevel Primary Menu

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

Version Downloads Date Links
6.x-1.1 tar.gz (7.76 KB) | zip (8.37 KB) 2010-Aug-09 Notes

Project Information


Maintainers for Multilevel Primary Menu

  • tahiticlic - 2 commits
    last: 2 years ago, first: 2 years ago

Issues for Multilevel Primary Menu

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants
nobody click here