{% if not ibexa_field_is_empty( content, 'imagelist' ) %} {# Variante 1 - Slide Nr 1 #} {% if not ibexa_field_is_empty( content, 'claim' ) %} {{ ibexa_render_field( content, 'claim' ) }} {% endif %} {% if not ibexa_field_is_empty( content, 'under_claim' ) %}

{{ ibexa_field_value( content, 'under_claim' ) }}

{% endif %} {% if not ibexa_field_is_empty( content, 'above_claim' ) %}

{{ ibexa_field_value( content, 'above_claim' ) }}

{% endif %}
{% for contentId in ibexa_field_value(content,'imagelist').destinationContentIds %} {{ render( controller( "ibexa_content:viewAction", {'contentId': contentId, 'viewType': 'embed','params': {'alias': 'magazin_dossier_image', 'hideText': true, 'showLightbox': false}} ) ) }} {% endfor %}
{% elseif not ibexa_field_is_empty( content, 'claim' ) %} {# Variante 2 - Slide Nr 2, 4, 6, 8 #} {# TODO: check if it is clever to skip bootstrap row and col-6 here?; flex not working with it, but css rewrite needed without #}
{% if not ibexa_field_is_empty( content, 'above_claim' ) %}

{{ ibexa_field_value( content, 'above_claim' ) }}

{% endif %} {% if not ibexa_field_is_empty( content, 'claim' ) %} {{ ibexa_render_field( content, 'claim' ) }} {% endif %} {% if not ibexa_field_is_empty( content, 'under_claim' ) %}

{{ ibexa_field_value( content, 'under_claim' ) }}

{% endif %}
{% if not ibexa_field_is_empty( content, 'image' ) %} {{ render( controller( "ibexa_content:viewAction", {'contentId': ibexa_field_value(content,'image').destinationContentId, 'viewType': 'embed', 'params': {'alias': 'magazin_dossier_image', 'hideText': false, 'showLightbox': false}} ) ) }} {% endif %}
{% elseif not ibexa_field_is_empty( content, 'zitat_text1' ) %} {# Variante 3 - Slide Nr. 3, 5, 7, 9 #}
{% if not ibexa_field_is_empty( content, 'zitat_text1' ) %}

{{ ibexa_field_value( content, 'zitat_text1' ) }}

{% endif %} {% if not ibexa_field_is_empty( content, 'zitat_person1' ) %}

{{ ibexa_field_value( content, 'zitat_person1' ) }}

{% endif %} {% if not ibexa_field_is_empty( content, 'zitat_text1' ) and not ibexa_field_is_empty( content, 'zitat_text2' ) %}
{% endif %} {% if not ibexa_field_is_empty( content, 'zitat_text2' ) %}

{{ ibexa_field_value( content, 'zitat_text2' ) }}

{% endif %} {% if not ibexa_field_is_empty( content, 'zitat_person2' ) %}

{{ ibexa_field_value( content, 'zitat_person2' ) }}

{% endif %}
{% if not ibexa_field_is_empty( content, 'image' ) %} {{ render( controller( "ibexa_content:viewAction", {'contentId': ibexa_field_value(content,'image').destinationContentId, 'viewType': 'embed', 'params': {'alias': 'magazin_dossier_image', 'hideText': true, 'showLightbox': false}} ) ) }} {% endif %}
{% elseif not ibexa_field_is_empty( content, 'image' ) %} {# variante 3 - Slide Nr. 10 #}
{{ render( controller( "ibexa_content:viewAction", {'contentId': ibexa_field_value(content,'image').destinationContentId, 'viewType': 'embed', 'params': {'alias': 'magazin_dossier_image', 'hideText': true, 'showLightbox': false}} ) ) }} {% if not ibexa_field_is_empty( content, 'above_claim' ) and not ibexa_field_is_empty( content, 'under_claim' ) %}

{{ ibexa_field_value( content, 'above_claim' ) }}
{{ ibexa_field_value( content, 'under_claim' ) }}

{% endif %} {% if content.fields['infolastslide'] is defined and not ibexa_field_is_empty( content, 'infolastslide' ) %} {{ ibexa_render_field( content, 'infolastslide' ) }} {% endif %}
{% endif %}