Bug anzeige bei Reise / Fewo

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3368 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-02-10 09:16:46 +00:00
parent 1293c19bc6
commit 8dac3be03c

View file

@ -6,9 +6,13 @@
{% endblock %} {% endblock %}
#} #}
{% block body %} {% block body %}
<section class="clearfix"> <section class="clearfix">
{% if(page.slug == "ferienwohnungen")%}
{% if lodgingGroups is not empty %} {% if lodgingGroups is not empty %}
{% for lodgingGroup in lodgingGroups %} {% for lodgingGroup in lodgingGroups %}
<h1>{{ lodgingGroup.name }}</h1> <h1>{{ lodgingGroup.name }}</h1>
@ -23,6 +27,22 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% else %}
<h1>{{ page.pagetitle|default(page.title) }}</h1>
{#{% for i in 0..page.children|length//3 %}#}
<div class="row">
{% for child_page in page.children if child_page.status == 1 %}
{% include 'default/components/pageBox.html.twig' %}
{% endfor %}
</div>
{% endif %}
</section> </section>
@ -30,3 +50,6 @@
{{ page.content|raw|keywords }} {{ page.content|raw|keywords }}
</section> </section>
{% endblock %} {% endblock %}