Use case: Custom breadcrumb parent per content type (D7)

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

Note for D6 users: Sorry, you have to do this in other ways.

What you intend

It is assumed that you have the node types "news", "event", "group", "group_event".
Organic Groups is installed. "Group" is configured as group type, "Group event" is configured as "group content" type.

Home
<front>
> News
news
> Richard III of England found dead.
node/123
(type: news)
Home
<front>
> Events
events
> Celebrate the new king.
node/124
(type: event)
Home
<front>
> Groups
groups
> Royal dinner club
node/12
(type: group)
> Events
node/12/events
> Discuss new home decorations.
node/125
(type: group_event)

How you do it

Go to
admin/structure/crumbs/entity-parent.
Configure like this:

News
news
Parent path for nodes of type "News".

Event
events
Parent path for nodes of type "Event".

Group
groups
Parent path for nodes of type "Group".

Group event
node/[node:group-audience:0:etid]/events
Parent path for nodes of type "Group event".

Probably it already works.

Otherwise, go to
admin/structure/crumbs
Look for
crumbs.nodeParent.*
cut + paste it up into the "Enabled" section, and move it as far up as you need to, to make it work.

Help improve this page

Page status: Not set

You can: