From: Jérémy Fabre Date: Mon, 26 Sep 2016 15:20:55 +0000 (+0200) Subject: Hide the page card if the page is not in the menu X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4787f7a02db68f5ec54f631735fb42f93bd2b007;p=mezzo.git Hide the page card if the page is not in the menu --- diff --git a/app/templates/pages/custompage.html b/app/templates/pages/custompage.html index a6eca743..5fb5144a 100644 --- a/app/templates/pages/custompage.html +++ b/app/templates/pages/custompage.html @@ -56,9 +56,11 @@ {% if childrens %}
{% for children in childrens %} - {% with children as object %} - {% include "pages/includes/page_card.html" %} - {% endwith %} + {% if children.in_menu %} + {% with children as object %} + {% include "pages/includes/page_card.html" %} + {% endwith %} + {% endif %} {% endfor %}
{% endif %}