I'm not sure what direction the original bluecheese author had in mind for page.tpl.php to display the two main site menus, but why not just use Drupal convention to display the primary and secondary links in those two sections in the header (currently nav_header and nav_masthead). The drupal redesign instructions from mark indicate that the top main navigation (eg nav_header in the theme) should be present on every page in the drupal site. This to me is a perfect candidate for primary_links.
In page.tpl.php, simply replace:
<?php print $nav_header; ?>
with
<?php print theme('links', $primary_links); ?>
and
<?php print $nav_masthead; ?>
with
<?php print theme('links', $secondary_links); ?>
I've already tested this in my sandbox and will submit a patch. Just use my user's theme to see it in action for yourself:
Note: to see the masthead tabs this requires you to add some links in secondary_links menu first! (I've already done this on staging2).
I added the following links:
1) path: <front>
title: Drupal Homepage
2) path: user
title: User Dashboard (this may probably change once dashboard module is implemented)
3) path: user/login
title: Login / Register (only Anonymous users will see this link due to the beauty of Drupal menu system)
4) Move existing Log Out menu-item from Navigation menu, and rename it to 'Logged in as [user-name] Log Out' This is meant to work in combination with #652166: support token replacement in menu link items.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 652172.patch | 729 bytes | jwilson3 |
Comments
Comment #1
jwilson3Comment #2
jwilson3Comment #3
drummSince navigation is shared between all the sites, it is easier to manage this in code to propagate changes to all sites, the drupalorg crosssite module, drupalorg_crosssite_preprocess_page(), fills these out.