From b16252bf37577c5f3903f5287f8507b06eb2cf9b Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Mon, 31 Oct 2022 11:42:24 +0100 Subject: [PATCH] Version 1.0.2 --- .../partials/sidebar_navigation.html.twig | 38 +------------------ 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/templates/partials/sidebar_navigation.html.twig b/templates/partials/sidebar_navigation.html.twig index c23cea8..53660ed 100644 --- a/templates/partials/sidebar_navigation.html.twig +++ b/templates/partials/sidebar_navigation.html.twig @@ -1,7 +1,6 @@ {% block menu_navigation %} {% macro loop(page) %} - {% for p in page.children %} - {% if p.visible %} + {% for p in page.children.visible %} {% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
  • {% if p.routable == false and p.children.count > 0%} @@ -13,14 +12,6 @@ - {% elseif p.routable != false and p.children.count > 0 %} - - {% if p.header.icon %}{% endif %} - {{ p.menu }} - - {% else %} {% if p.header.icon %}{% endif %} @@ -28,35 +19,10 @@ {% endif %}
  • - {% endif %} {% endfor %} {% endmacro %} -{% endblock %} \ No newline at end of file +{% endblock %}