parent_category

The parent_category.twig view is used to display the subcategories that belong to a particular category.


In most circumstances, this page will extend the collection.twig template because it's format will follow the usual display of collection pages on your theme.

The parent category view has access to the category object to display details about the current category being viewed (such as the category name and description).

The parent category view has access to the category object to display details about the categories it contains (such as the category name, image and description) with a link through to the category page, e.g.

{% for category in categories %}
    <a href="{{ category.url }}">
        {{ category.title }}
    </a>
{% endfor %}