From 3c2ede7d0333c3e586d0c9a543934f715bf507de Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 28 Sep 2016 13:00:45 +0200 Subject: [PATCH] Fix child page display against in_menus property --- app/templates/pages/custompage.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/templates/pages/custompage.html b/app/templates/pages/custompage.html index 85517652..2d9ac1a2 100644 --- a/app/templates/pages/custompage.html +++ b/app/templates/pages/custompage.html @@ -55,11 +55,9 @@ {% children_pages page.id as childrens %} {% if childrens %}
- {% for children in childrens %} - {% if children.in_menus %} - {% with children as object %} - {% include "pages/includes/page_card.html" %} - {% endwith %} + {% for object in childrens %} + {% if object.in_menus.0 %} + {% include "pages/includes/page_card.html" %} {% endif %} {% endfor %}
-- 2.39.5