{% block subject %} {% if content.fields['subject'] is defined and not ibexa_field_is_empty( content, "subject" ) %} {{ ibexa_field_value( content, "subject" ) }} {% else %} {% if content.fields['title'] is defined and not ibexa_field_is_empty( content, "title" ) and not collected_fields["title"] is defined%} {{ ibexa_field_value( content, "title" ) }} {% elseif content.fields['titel'] is defined and not ibexa_field_is_empty( content, "titel" ) and not collected_fields["titel"] is defined%} {{ ibexa_field_value( content, "titel" ) }} {% elseif content.fields['name'] is defined and not ibexa_field_is_empty( content, "name" ) and not collected_fields["name"] is defined%} {{ ibexa_field_value( content, "name" ) }} {% else %}{{ content.contentType.identifier }}{% endif %} - {{ ibexa.rootLocation.contentInfo.name }} {% endif %} {% endblock %} {% block sender %} {% if collected_fields["input_mail"] is defined and collected_fields["input_mail"].value %} {{ collected_fields["input_mail"].value }} {% endif %} {% endblock %} {% block email %} {% set content_type = content.contentType %} {% for field_name, field_value in collected_fields %} {% if field_name == "newsletter_abo" or field_name == "input_datenschutz" %} {# ignore at the moment as not needed or attached#} {% elseif content.fields[field_name] is defined and content.fields[field_name] is not empty and field_value is not empty%}