Breadcrumb

The {{ breadcrumb }} variable contains the breadcrumb navigation for the page. It is a simple one dimensional array of item objects. You can loop over the breadcrumb and print the elements out like this:

<ul class="breadcrumb">
{% for element in breadcrumb %}
    <li><a href="{{ element.urlRel }}">{{ element.name }}</a></li>
{% endfor %}
</ul>

All information in the items is available, so check the chapter about the item variable for more details.

© by Sebastian Schürmanns, 2017 - 2021. All Rights Reserved. Built with Typemill.