Helou everyone!

Im trying to add another menu like primary-menu in page.tpl.php. I don't want use a blocks. Trying to use this
to setup all in my theme

<?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary-menu', 'class' => array('links', 'inline', 'clearfix')))); ?>

but the thing is that i don't know how to setup variables for this in template.php or just in page.tpl.php like

<?php
$menu = menu_navigation_links('menu-your-custom-menu-name');
print theme('links__menu_your_custom_menu_name', array('links' => $menu));
?>

Does it possible anyway?

Please help
BR

Comments

alexkb’s picture

Hi sargath, the mneu_navigation_links call should be in your
_preprocess_page function in your template.php and then the print function is find in your page.tpl.php. Derek has explained things in this comment: http://drupal.org/node/1064170#comment-4158908