]> git.parisson.com Git - mezzo.git/commitdiff
Hide the page card if the page is not in the menu
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 26 Sep 2016 15:20:55 +0000 (17:20 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 26 Sep 2016 15:20:55 +0000 (17:20 +0200)
app/templates/pages/custompage.html

index a6eca743e93b806be9c2d6184924702532588398..5fb5144abbabda933056254ad863b9695cf4ea32 100644 (file)
         {% if childrens %}
             <div class="page__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 %}
             </div>
         {% endif %}