On this page
Use case: Custom breadcrumb parent per content type (D7)
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>
|
> |
Newsnews
|
> |
Richard III of England found dead.node/123(type: news) |
Home<front>
|
> |
Eventsevents
|
> |
Celebrate the new king.node/124(type: event) |
Home<front>
|
> |
Groupsgroups
|
> |
Royal dinner clubnode/12(type: group) |
> |
Eventsnode/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
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion