{% extends "@IbexaCore/content_fields.html.twig" %} {% block novaseometas_field %} {{ field|compute_novaseometas(content) }} {% set isCanonicalFind = false %} {% set isTitleFind = false %} {% for meta in field.value.metas %} {% if meta.content is not empty %} {% if meta.name == "title" %} {{ meta.content }} {% set isTitleFind = true %} {% elseif meta.name == "canonical" %} {% set isCanonicalFind = true %} {% elseif 'image' in meta.name|trim or 'card' in meta.name|trim or 'url' in meta.name|trim %} {% elseif meta.name|trim starts with "og" %} {% else %} {% endif %} {% else %} {% set fallbackedContent = contentInfo|fallback_novaseometas( meta.name ) %} {% if fallbackedContent is not empty %} {% if meta.name == "title" %} {% set isTitleFind = true %} {{ fallbackedContent }} {% else %} {% endif %} {% endif %} {% endif %} {% endfor %} {% if contentInfo.mainLocationId is defined and contentInfo.mainLocationId is not null and isCanonicalFind == false %} {% endif %} {% if isTitleFind == false %} {{ ibexa_content_name( contentInfo ) }} {% endif %} {% endblock %}