<div class="dropdown-menu">
<h4>{{ treeItem.category.translated.name }}</h4>
<ul>
<li class="dropdown-item">
<a class="link-all"
href="{{ seoUrl('frontend.navigation.page', { navigationId: treeItem.category.id }) }}"
itemprop="url"
title="{{ treeItem.category.translated.name }}">
{{ "header.menu.displayAll"|trans }}
</a>
</li>
{% block layout_navigation_categories_link_loop %}
{% for treeItemChild in treeItemChildren %}
{% set internalLink = treeItemChild.category.internalLink %}
{% set containsArticlesBaumarkt = treeItemChild.category.extensions.ianeoAttributes.containsArticlesBaumarkt %}
{% if containsArticlesBaumarkt %}
<li class="dropdown-item dropdown-sub">
<a class="dropdown-item-link {% if treeItemChild.category.childCount > 0 %} submenu-trigger{% endif %}"
{% if treeItemChild.category.childCount > 0 %}data-category-id="{{ treeItemChild.category.id }}"{% endif %}
title="{{ treeItemChild.category.translated.name }}"
itemprop="url"
href="{% if treeItemChild.category.externalLink %}{{ treeItemChild.category.externalLink }}
{% elseif internalLink %}{{ seoUrl('frontend.navigation.page', { navigationId: internalLink }) }}
{% else %}{{ seoUrl('frontend.navigation.page', { navigationId: treeItemChild.category.id }) }}{% endif %}">
{{ treeItemChild.category.translated.name }}
{% if treeItemChild.category.childCount > 0 %}{% sw_icon 'chevron-down_m' style {'pack' : 'globus_icons'} %}{% endif %}
</a>
{% if treeItemChild.category.childCount > 0 %}
<div class="subtree-placeholder-{{ treeItemChild.category.id }}"></div>
{% endif %}
</li>
{% endif %}
{% endfor %}
{% endblock %}
</ul>
</div>