I need a navigation with different layouts at the submenus. How can i do this:
<nav>
<ul>
<li><a href="/">Home</a></li>
<ul class="dropdown-menu">
<li class="dropdown-submenu"><a href="#"><i class="fa fa-heart"></i>Submenu</a>
<ul class="dropdown-menu">
<li><a href="#">Menuitem</a></li>
<li class="dropdown-submenu"><a href="#">Menuitem with sub</a>
<ul class="dropdown-menu">
<li><a href="#">......</a></li>
At the moment i use this:
{% macro loop(page) %}
{% for p in page.children.visible %}
{% if p.children.visible.count > 0 %}
<li class="dropdown">
<a href="{{ p.url }}">
{{ p.menu }}
</a>
<ul class="dropdown-menu">
{{ _self.loop(p) }}
</ul>
</li>