{% macro recursiveCategoryItem(category, options) %} {% set subCategories = getCategoryList({'parentCategory':category.id}) %}
  • {% if subCategories|length > 0 %} {% endif %}
    {{ category.name|default }}
    {% if subCategories|length > 0 %} {% endif %}
  • {% endmacro %} {% from _self import recursiveCategoryItem %}