This project is not covered by Drupal’s security advisory policy.
About
Core and contrib tokens already do a great job in providing precious meta information on Drupal entities. However, creating a hierarchical breadcrumb from the root term down (or up) to and especially including the current term with a single token is impossible unless you wanted to create custom code snippets as a workaround.
This module is intended to fill just this gap as handy as possible and thus introduces two additional term related tokens:
- [term:breadcrumb]
- [term:breadcrumb-reverse]
Where the first one returns an array starting with the root term, the latter starting with the current term.
Requirements
All you need is:
- Enable core taxonomy module (you would not be here without that!)
- token module
Quick reference
Just enable the module and create some tokenizable content. You will find the two new tokens in the token browser, supporting all array-related options the token module offers.
Example
If you have a hierarchichal vocabulary like this one:
[Vocab]
|
+- Grocery
|
+- Vegetables
|
+- Fruits
| |
| +- Apples
| |
| +- Pears
|
+- Drinks
Then inserting [term:breadcrumb:join: > ]
e.g. as page title in the metatag module would result in Grocery > Fruits > Apples while [term:breadcrumb-reverse:join: / ]
would deliver Apples / Fruits / Grocery.
Credits
D7 development sponsered by Compuccino GmbH.
Project information
- Module categories: Content Editing Experience, Search Engine Optimization (SEO)
- 52 sites report using this module
- Created by doitDave on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Development version: 7.x-1.x-dev updated 15 Oct 2013 at 14:02 UTC