{% block header %}

{{ product.getLabel(locale, scope) }} {{ product.identifier != product.getLabel(locale, scope) ? '(' ~ product.identifier ~ ')' : '' }}

{{ renderingDate|date }} {% endblock %}
{% block images %} {% for imagePath in imagePaths %} {% endfor %} {% endblock %}
{% for group, attributes in groupedAttributes %} {% block attribute_group %}

{{ group }}

{% for attribute in attributes %} {% block attribute %} {% set locale_attribute = attribute.isLocalizable or attribute.isLocaleSpecific ? locale : null %} {% set channel_attribute = attribute.isScopable ? scope : null %} {% set content = product.getValue(attribute.code, locale_attribute, channel_attribute) %} {% set manualHeight = true %} {% if 'pim_catalog_image' == attribute.type and content.data is defined and content.data is not null %} {% set manualHeight = false %} {% endif %} {% if content != null and manualHeight == true %} {% set manualHeight = attribute.label|length > (content|trim|length / 3) %} {% endif %}
{{ attribute.label }}
{{ render_attribute_value(attribute, content, locale)|raw }}
{% endblock %} {% endfor %}
{% endblock %} {% endfor %}