taxonomy:breadcrumbs
Builds an breadcrumb trail from the current node to the root node.
{exp:taxonomy:breadcrumbs tree_id="1" entry_id="{entry_id}"}
Example output:
<a href="/">Home</a> → <a href="http://example.com/page/about_us">About Us</a> → History
Breadcrumbs Tag Parameters
- tree_id="1"
- entry_id="25"
- display_root="yes"
- delimiter="→"
- hide_dt_group="yes"
- wrap_li="yes"
- include_here="no"
- titles_only="yes"
- reverse ="yes"
- title_field="node_title_fr"
tree_id=
tree_id="1"
The id of the tree you want to fetch. This is a required parameter.
entry_id=
entry_id="{entry_id}"
The id of the node being viewed. This is a required parameter.
display_root=
display_root="no"
Don't display the root node, default is 'yes'
delimiter=
delimiter="→"
Entity you want seperating each crumb. Default is "→".
hide_dt_group
hide_dt_group="yes"
Hide/remove default template group from urls generated by Taxonomy.
wrap_li
wrap_li="yes"
Wrap each item/node in <li></li> tags.
<ul>
<li><a href="http://iain.co.nz/">Home</a></li>
{exp:taxonomy:breadcrumbs tree_id="1" entry_id="{entry_id}" wrap_li="yes"}
</ul>
Note: This parameter nulls the delimiter value
include_here=
include_here="no"
Prevent the 'here' or 'current' node from appearing in the output so you can append your own crumb items (categories for example). Default is yes.
titles_only=
titles_only="yes"
Remove hyperlink wrappers round each item/node
reverse=
reverse="yes"
Output the items/nodes in reverse order from a traditional breadcrumbs trail
title_field=
title_field="node_title_fr"
Use a Taxonomy custom field instead of the default node_title field for each node's label (useful for multi-langauage sites)