💾 Archived View for chirale.org › 2008-07-10_111.gmi captured on 2024-12-17 at 10:07:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-12)

-=-=-=-=-=-=-

Tertiary links on Drupal

Update: check [Tertiary links / 2: tree workaround](../2008/09/26/tertiary-links-2-tree-workaround/ "tree workaround"") before this. That’s a wiser solution in many cases.[

](../2008/09/26/tertiary-links-2-tree-workaround/ "tree workaround"")

Tested on:

If you use primary and secondary links in distinct blocks/area of a page, you can add the ability to browse the third navigation level. Just hack your page.tpl.php.

<div id="secondary">`` <?php #display tertiary links menu on 2nd level $tertiary_links=menu_primary_links(3, variable_get('menu_primary_menu', 0) ); #display secondary links menu on 1st level if($my_secondary_links):?> <?php print theme('links', $my_secondary_links, array('class' => 'links tertiary-links')); ?> elseif ($secondary_links): ?> <?php print theme('links', $secondary_links); ?> </div> <!-- /#secondary --> <?php endif; ?>

See also:

https://web.archive.org/web/20080710000000*/http://www.freesoftwaremagazine.com/books/drupal_tricks/tertiary_menu

https://web.archive.org/web/20080710000000*/http://drupal.org/node/269286