Textpattern CMS Template Tags

<txp:breadcrumb /> single tag, 4 attributes

breadcrumb

The breadcrumb tag is a single tag which is used to create breadcrumb navigation. It provides either hyperlinked navigation, or plain text positional display, any time you are not on the Home page.

attributes

seperator="»"
  • Character to be used as the breadcrumb separator.
title="0" (boolean)
  • Whether to display the title or not.
link="1" (boolean)
  • Whether to hyperlink breadcrumbs.
linkclass="noline"
  • (X)HTML class attribute applied to the breadcrumb links.

presentation

label="Site Name"
  • Label prepended to item (or as first list item, where appropriate).
  • if wraptag is available and is set to ol or ul, the label will be the first list item.
wraptag="p"
  • (X)HTML tag (without brackets) to wrap around the list.
class="unset"
  • (X)HTML class attribute to apply to the wraptag.

genealogy

Version 4.3.0

  • sep attribute deprecated and renamed separator
<txp:breadcrumb /> 2 examples

Display a hyperlinked breadcrumb trail

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

Provides hyperlinks to sections or categories in a breadcrumb style, linking back to your home page.
Note: Breadcrumbs are not displayed on the “Default” section of your site

Display a text only breadcrumb trail

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

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