Help?

breadcrumb

From Textpattern CMS User Documentation

<txp: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.

Contents

Attributes

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

link="value"
Whether to hyperlink breadcrumbs.
Values: 1 (yes) or 0 (no).
Default: 1.
linkclass="class name"
HTML class attribute applied to the breadcrumb links.
Default: unset.
separator="value"
Character to be used as the breadcrumb separator.
Default:  » .
title="boolean"
Whether to display the title or not.
Values: 1 (yes) or 0 (no, display name).
Default: 0.

Common Presentational Attributes

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

label="text"
Label prepended to item.
Default: unset (but see label cross-reference for exceptions).
wraptag="element"
HTML element to wrap (markup) list block (e.g., wraptag="ul")
Default: unset (but see wraptag cross-reference for exceptions).
class="name"
HTML class to apply to the wraptag attribute value.
Default: tag name or unset (see class cross-reference)

Examples

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.

Breadcrumbs are not displayed on the "Default" section of your site

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.

Genealogy

Version 4.3.0

  • sep attribute deprecated and renamed separator

Version 4.5.0

  • Default class name noline for linkclass removed, now unset.
Translations [?]