{% macro recursiveCatgories(categories, countryLanguageId,route_category_type_with_child,route_category_type_without_child) %} {% set sub_category = [] %} {% set has_child = 'no' %} {% for index, category in categories %} {% if category.child is defined %} {% set has_child = 'yes' %} {% set item_type = route_category_type_with_child %} {% else %} {% set has_child = 'no' %} {% set item_type = route_category_type_without_child %} {% endif %}
  • {% if has_child == 'yes' %} {% endif %}
  • {% endfor %} {% endmacro %}
    {{ "cms.admin.menu.form.sidebar.add_to_menu" | trans }}