{% for name, content in nova_ezseo.default_metas %} {% if content is not empty %} {% endif %} {% endfor %} {% if content is defined and content.fields[nova_ezseo.fieldtype_metas_identifier] is defined %} {{ ibexa_render_field( content, nova_ezseo.fieldtype_metas_identifier ) }} {% endif %} {% if content is defined and content.fields[nova_ezseo.fieldtype_metas_identifier] is not defined %} {% if content.contentInfo.mainLocationId is defined and content.contentInfo.mainLocationId is not null %} {% endif %} {% endif %} {% for rel, attrs in nova_ezseo.default_links %} {% if attrs.href is not empty %} {% set href = attrs.href %} {% if href.location_id is defined %} {% set href = path( 'ibexa.url.alias', {'locationId': href.location_id } ) %} {% elseif href.route is defined %} {% set href = path( href.route ) %} {% elseif href.asset is defined %} {% if href.asset.package is defined %} {% set href = asset( href.asset.path, href.asset.package ) %} {% else %} {% set href = asset( href.asset.path ) %} {% endif %} {% endif %} {% endif %} {% endfor %} {% if ibexa.availableLanguages|length > 1 %} {% for lang in ibexa.availableLanguages %} {% if location is defined and not location.isDraft %} {% else %} {# FAILS WITH PAGE BUILDER ON NEW CREATION {% set route = ibexa_route( params={"language": lang} ) %} #} {% endif %} {% endfor %} {% endif %}