Adding breadcrumbs to Categories

The <ev:breadcrumbs/> tag automates the rendering of all breadcrumbs on pages throughout Evance. However, you may choose to construct your own custom breadcrumb trail on your category templates.

Automated breadcrumbs

You can automate the rendering of breadcrumbs on your category using the <ev:breadcrumbs /> tag.

<ev:breadcrumbs />

Building your own breadcrumbs

You may choose to render your own custom breadcrumbs. You may do this by accessing the Category's ancestors.

    var parentCategories = category.parents().reverse();
    for (var parentCategory of parentCategories) { 
        <a href="{{ parentCategory.url }}">
            {{ parentCategory.title }}
<?ev } ?>

Further reading