Very new to Drupal--trying to understand building a dynamic navigation menu for end users to handle. Is it possible to print the Main Menu inside a block I'm using for the header? e.g.
<nav id="main-menu" role="navigation" tabindex="-1"> <?php print theme('links__system_main_menu', array( 'links' => $main_menu, 'attributes' => array( 'class' => array('links', 'inline', 'clearfix'), ), 'heading' => array( 'text' => t('Main menu'), 'level' => 'h2', 'class' => array('element-invisible'), ), )); ?> </nav>
Pages render the
<nav> tag, but nothing inside such as the content (basic pages) that Main Menu definitely contains so far as I can see in
I'm using my own sub-theme (derived from Zen, but most regions removed,) so I've been trying the code above (and variations) in a block added to the Header region. Is this not the Drupal convention?