I'm try to overwrite the menu.html.twig file to support my menu structure.
My menu has some links and sublinks (only one level deep). Now when I write the menu.html.twig file I only to all the root links. No subitems can be found.
Can someone tells me what I'm doing wrong?
My source code of menu.html.twig looks like:
{% import _self as menus %}
<ul class="nav side-menu">
{% for item in items %}
{% if item.below | length == 0 %}
<li {% if item.in_active_trail%}class="current-page"{% endif %}>
{{link(item.title, item.url)}}
</li>
{% else %}
<li><a><i class="fa fa-edit"></i> item.title <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
{% for subItem in item.below %}
<li>{{link(subItem.title, subitem.url)}}}</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</ul>