stk:navigation.create-breadcrumbs(template)

Creates breadcrumbs for the current path. Breadcrumbs are not outputted if the current path is the site's front page.

element()?stk:navigation.create-breadcrumbs
  1. xs:booleaninclude-home
  2. xs:booleaninclude-current
  3. xs:string*attr

Examples

Input

<xsl:call-template name="stk:navigation.create-breadcrumbs"/>

Result

<nav class="breadcrumbs">
  <span typeof="v:Breadcrumb">
    <a href="https://enonic.com/stk/home" class="home" rel="v:url" property="v:title">Home</a>
  </span>
  <span typeof="v:Breadcrumb">
    <a href="https://enonic.com/stk/template-reference" rel="v:url" property="v:title">Template reference</a>
  </span>
  <span typeof="v:Breadcrumb">
    <a href="https://enonic.com/stk/template-reference/xslt" rel="v:url" property="v:title">XSLT</a>
  </span>
  <span typeof="v:Breadcrumb">
    <a href="https://enonic.com/stk/template-reference/xslt/navigation" rel="v:url" property="v:title">Navigation</a>
  </span>
</nav>

Parameters

include-home
Start breadcrumbs with home or not
Type
xs:boolean
Default
true()
include-current
Include current resource in breadcrumbs?
Type
xs:boolean
Default
false()
attr
Custom attributes. Format: 'foo=bar'. Multiple attributes: 'foo=bar', 'fish=salmon'
Type
xs:string*