How to print a custom menu in Drupal 7?

前端 未结 3 1071
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 06:53

I have created a menu in Drupal 7 and created links to pages under that menu.

I named my new menu \"Site Menu\"

In my page.tpl.php where I want my menu to appear

3条回答
  •  隐瞒了意图╮
    2021-02-04 07:35

    Berdir answer is correct. Drupal 7 theme_links function also more vastly uses arrays. For example if you would like to add another class name to the so that it is you would code it like this:

     menu_navigation_links('menu-site-menu'), 'attributes' => array('class'=> array('links', 'site-menu')) ));?>
    

提交回复
热议问题