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&#39;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 &amp; 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">&lt;<a href="mailto:sargath@o2.pl">sargath@o2.pl</a>&gt;</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&#39;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">&lt;?php </span><span style="color:#007700">print </span><span style="color:#0000bb">theme</span><span style="color:#007700">(</span><span style="color:#dd0000">&#39;links__system_secondary_menu&#39;</span><span style="color:#007700">, array(</span><span style="color:#dd0000">&#39;links&#39; </span><span style="color:#007700">=&gt;
          </span><span style="color:#0000bb">$secondary_menu</span><span style="color:#007700">, </span><span style="color:#dd0000">&#39;attributes&#39; </span><span style="color:#007700">=&gt;
            array(</span><span style="color:#dd0000">&#39;id&#39; </span><span style="color:#007700">=&gt; </span><span style="color:#dd0000">&#39;secondary-menu&#39;</span><span style="color:#007700">,
          </span><span style="color:#dd0000">&#39;class&#39; </span><span style="color:#007700">=&gt; array(</span><span style="color:#dd0000">&#39;links&#39;</span><span style="color:#007700">, </span><span style="color:#dd0000">&#39;inline&#39;</span><span style="color:#007700">, </span><span style="color:#dd0000">&#39;clearfix&#39;</span><span style="color:#007700">))));
          </span><span style="color:#0000bb">?&gt;</span></span></code></div>
    <br>
    but the thing is that i don&#39;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">&lt;?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">&#39;menu-your-custom-menu-name&#39;</span><span style="color:#007700">);<br>

            print </span><span style="color:#0000bb">theme</span><span style="color:#007700">(</span><span style="color:#dd0000">&#39;links__menu_your_custom_menu_name&#39;</span><span style="color:#007700">, array(</span><span style="color:#dd0000">&#39;links&#39; </span><span style="color:#007700">=&gt;
          </span><span style="color:#0000bb">$menu</span><span style="color:#007700">));<br>
          </span><span style="color:#0000bb">?&gt;</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>