Go to main content




<txp:breadcrumb />

The breadcrumb tag can be used as either a single or container tag to create breadcrumb navigation. It provides either hyperlinked navigation, or plain text positional display. Breadcrumbs are not displayed on the ‘default’ section (home page) of your site.

The main part of the breadcrumb (as obtained with label="" section="" attributes) is the category path of the given category. If needed, only some parts of this path (e.g. the parent) can be retrieved via limit and offset attributes.


Tag will accept the following attributes (case-sensitive) as well as the global attributes :

category="category name" v4.7.0+
Category to be used as the breadcrumb base.
Default: the current category.
Whether to hyperlink breadcrumbs.
Values: 0 (no) or 1 (yes).
Default: 1.
limit="integer" v4.7.0+
How many items to include in the category path.
Default: unset.
linkclass="class name"
HTML class attribute applied to the breadcrumb links.
Default: unset.
offset="integer" v4.7.0+
The offset of the category path. A negative value offsets from the end.
Default: 0 (display the whole path).
Section link to prepend to the breadcrumb.
Default: the current section.
Character to be used as the breadcrumb separator.
Default:  » .
Whether to display the title or not.
Values: 0 (no, display name) or 1 (yes).
Default: 0.
type="string" v4.7.0+
The type of the viewed resource.
Values: article, file, image or link.
Default: the current context (typically article).

Common presentational attributes

These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.

class="class name"
HTML class to apply to the wraptag attribute value.
Default: unset (see class cross-reference).
Label prepended to item.
Default: unset (but see label cross-reference for exceptions).
HTML element to wrap breadcrumb block, specified without brackets (e.g. wraptag="p").
Default: unset (but see wraptag cross-reference for exceptions).


Example 1: Display a hyperlinked breadcrumb trail

<txp:breadcrumb label="Navigation" separator="::" link="1" wraptag="p" />

Provides hyperlinks to sections or categories in a breadcrumb style, linking back to your home page.

Example 2: Display a text only breadcrumb trail

<txp:breadcrumb label="Navigation" separator="/" link="0" wraptag="p" />

Provides a breadcrumb guide that reflects where a user is within the site’s navigation.

Example 3: Retrieve the parent of a category

<txp:breadcrumb label="" section="" category="cat" limit="1" offset="-1" />


Version 4.7.0

Can be used as a container tag.
category, limit, offset and type attributes added.

Version 4.5.0

Default class="noline" for linkclass attribute removed (now unset).

Version 4.3.0

sep attribute deprecated and renamed separator.

If you notice any kind of problem with this page's construction or content (outdated information, typos, broken links, or whatever), open an issue to have it sorted. Or have a go at it yourself. :)