Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Page sub category lists in REC
{% include "html/helpers/sub-categories-list.html.twig" with {'parent': page.products_shown_cat_id } %}
{% set subCategories = api('categories', { parent: parent } %}
{% for category in subCategories %}
<a href="{{ category.link }}">{{ category.name }}</a>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.