Manually getting and inserting menus can be sort of a chore, and require a few obscure functions to fetch the menu array.<div><br></div><div>Contrary to your wish, I do recommend simply using a block region to implement the menu for the sake of flexibility and ease. Let's hope this is easier in Drupal 8 :)<br clear="all">
<div><br></div><font color="#333333">Carl Wiedemann</font><div><div><font color="#666666">Website design & development consulting | <a href="http://c4rl.ws" target="_blank">c4rl.ws</a></font></div><div><font color="#666666"><a href="mailto:carl.wiedemann@gmail.com" target="_blank">carl.wiedemann@gmail.com</a> | skype: c4rlww</font></div>
</div><br>
<br><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 5:59 AM, Sargath <span dir="ltr"><<a href="mailto:sargath@o2.pl">sargath@o2.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello Everyone!<br>
</p>
<p>Im trying to add another menu like primary-menu in page.tpl.php.
I don't want use a blocks. Trying to use this<br>
to setup all in my theme<br>
</p>
<div><code><span style="color:#000000"><span style="color:#0000bb"><?php </span><span style="color:#007700">print </span><span style="color:#0000bb">theme</span><span style="color:#007700">(</span><span style="color:#dd0000">'links__system_secondary_menu'</span><span style="color:#007700">, array(</span><span style="color:#dd0000">'links' </span><span style="color:#007700">=>
</span><span style="color:#0000bb">$secondary_menu</span><span style="color:#007700">, </span><span style="color:#dd0000">'attributes' </span><span style="color:#007700">=>
array(</span><span style="color:#dd0000">'id' </span><span style="color:#007700">=> </span><span style="color:#dd0000">'secondary-menu'</span><span style="color:#007700">,
</span><span style="color:#dd0000">'class' </span><span style="color:#007700">=> array(</span><span style="color:#dd0000">'links'</span><span style="color:#007700">, </span><span style="color:#dd0000">'inline'</span><span style="color:#007700">, </span><span style="color:#dd0000">'clearfix'</span><span style="color:#007700">))));
</span><span style="color:#0000bb">?></span></span></code></div>
<br>
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<br>
<div><code><span style="color:#000000"><span style="color:#0000bb"><?php<br>
$menu </span><span style="color:#007700">= </span><span style="color:#0000bb">menu_navigation_links</span><span style="color:#007700">(</span><span style="color:#dd0000">'menu-your-custom-menu-name'</span><span style="color:#007700">);<br>
print </span><span style="color:#0000bb">theme</span><span style="color:#007700">(</span><span style="color:#dd0000">'links__menu_your_custom_menu_name'</span><span style="color:#007700">, array(</span><span style="color:#dd0000">'links' </span><span style="color:#007700">=>
</span><span style="color:#0000bb">$menu</span><span style="color:#007700">));<br>
</span><span style="color:#0000bb">?></span></span></code></div>
<p>Does it possible anyway? or only using block to put new menus in
template ?<br>
</p>
<p>Please help<br>
BR</p>
</div>
<br>_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
<br></blockquote></div><br></div>