From: Thomas Fillon Date: Thu, 10 Sep 2015 09:58:14 +0000 (+0200) Subject: Only show child pages in the left menu for the current page X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=093bb2eb2a6d1e3a272c32b08b03b008eb9d2a06;p=diggersdigest.git Only show child pages in the left menu for the current page --- diff --git a/diggersdigest/templates/pages/menus/tree.html b/diggersdigest/templates/pages/menus/tree.html index 3610808..05ea86f 100644 --- a/diggersdigest/templates/pages/menus/tree.html +++ b/diggersdigest/templates/pages/menus/tree.html @@ -17,7 +17,7 @@ {{ page.title }} {# wrap the next line with 'if page.is_current_or_ascendant' #} {# to only show child pages in the menu for the current page #} - {% if page.has_children_in_menu %}{% page_menu page %}{% endif %} + {% if page.is_current_or_ascendant %}{% page_menu page %}{% endif %} {% endif %} {% endfor %}