Node breadcrumb

edhel - August 16, 2007 - 05:08

Allow you to customize menu location and breadcrumb of nodes depending on their content type, associated terms and others conditions.

By this module you can create rules which indicate menu location of nodes (it implicitly influences to nodes' breadcrumb). Rules are stored in database and contains such parts (fields): content type, term ID 1, term ID 2, PHP condition, menu item ID, weight. Rules are applied on review of nodes at full mode (hook nodeapi is used for that).

Use case 1: You have content type "project" and page "projects" with list of all projects. And link to this page "projects" is present at some menu (e. g. "primary links"). When you select project from projects list and view full node presentation your breadcrumb have only one link to "home" page without link to "projects" page. So with help of this module you can create appropriate rule and breadcrumb became "home » projects".

Use case 2: Your stories are classified with help of taxonomy, e. g. "site news", "company news" and "birthday congratulations". And you have 3 corresponding pages with list of stories' teasers (pages "Site news", "Company news" and "Birthday congratulations"). Let these pages are present in some menu(s). And again you can fix breadcrumb and menu location of stories by creating appropriate rules by this module.

For more complicated conditions you can use plain PHP code in rules. In code you must use $node variable, e. g., $node->field_person_department[0]['nid']==67 or $node->type == 'story' || $node->type == 'news'.

On screenshot below there is shown administration page of module.

Similar modules and differences from this module:

  • Taxonomy Breadcrumb — automatically add term links (taxonomy/term/tid) to breadcrumb of nodes, no influence to menu location
  • Custom Breadcrumbs — customization only for entire content types, manual enter of breadcrumb links, no influence to menu location

Releases

Official releasesDateSizeLinksStatus
5.x-2.02008-Sep-2735.55 KBRecommended for 5.xThis is currently the recommended release for 5.x.
 
 

Drupal is a registered trademark of Dries Buytaert.