Skip to content

Instantly share code, notes, and snippets.

@stilliard
Created August 2, 2019 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stilliard/0a5a1080722105a42784850ae96c986c to your computer and use it in GitHub Desktop.
Save stilliard/0a5a1080722105a42784850ae96c986c to your computer and use it in GitHub Desktop.
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