Note: Lullabot has also provided an excellent video lesson on this same method of Using Secondary Menus to create a menu hierarchy.
<?php if (isset($primary_links)) : ?>
<?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
<?php endif; ?>
<?php if (isset($secondary_links)) : ?>
<?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
<?php endif; ?>Primary links, and set the Restrict parent items to option to Primary links. Press the "Save configuration" button.
Primary links, and press the "Save configuration" button.
The Restrict parent items to (Drupal 5) and Default menu for content (Drupal 6) are the same option. What it does is makes the "Primary links" menu the default menu to add to when creating content, instead of showing a huge list of other menus you don't need.
The Menu containing secondary links (Drupal 5) and Source for the secondary links (Drupal 6) are the same option. What it does is cause the source of the Secondary links menu to be the contextual children of the Primary links menu items, instead of being a separate unrelated "secondary menu". By default the Secondary links menu is a not connected to the Primary links menu - it is second separate menu. This ties the two together.
Section for the Title of this page. Click the "Menu settings" fieldset. Add Section as the Menu link title, and ensure that the menu is set with Primary Links as the Parent item. Leave the Weight field at its default at this point, as it's much easier to sort menu items later from the main Menu page. Click the "Save" button to save the page.Subpage for the Title of this page. Click the "Menu settings" fieldset. Add Subpage as the Menu link title, and under Parent item, choose Section, making this page a child of Section in the menu. Click the "Save" button to save the page.