a wee weblog, since 2006

taxonomy:
breadcrumbs

5Feb
2011

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=

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="&rarr;"

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)

As captured 9 May 2021 · The archived original