Breadcrumb

A basic helper to render a list of breadcrumb links. A view should set a breadcrumbs object which will then be rendered by the base template.

{%
    set breadcrumbs = [
        {'label': 'foo', 'href': '#foo'},
        {'label': 'bar', 'href': '#bar'},
        {'label': 'baz', 'href': '#baz'}
    ]
%}
Example output in base template
<nav class="breadcrumb">
    <a href="#foo">foo</a> /
    <a href="#bar">bar</a> /
    <a href="#baz">baz</a>
</nav>

Helper

You will need the breadcrumb helper in your base template, normally within the tabs content block

<div class="content-main">
    <div class="tabs__content">
        {{ nav.breadcrumbs(breadcrumbs|default) }}
        ...

results matching ""

    No results matching ""