[themes] Third or more custom menus in template theme.
Sargath
sargath at o2.pl
Mon Mar 19 11:59:00 UTC 2012
Hello 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? or only using block to put new menus in template ?
Please help
BR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/themes/attachments/20120319/8881ce8f/attachment.html
More information about the themes
mailing list