From: Guillaume Pellerin Date: Wed, 28 Sep 2016 11:00:45 +0000 (+0200) Subject: Fix child page display against in_menus property X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3c2ede7d0333c3e586d0c9a543934f715bf507de;p=mezzo.git Fix child page display against in_menus property --- 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 %}