From 093bb2eb2a6d1e3a272c32b08b03b008eb9d2a06 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Thu, 10 Sep 2015 11:58:14 +0200 Subject: [PATCH] Only show child pages in the left menu for the current page --- diggersdigest/templates/pages/menus/tree.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %} -- 2.39.5