Skip to content

Page Twig functions

ibexa_append_cacheable_query_params()

Get the query parameters of a page block as configured in cacheable_query_params. If the block type has no configured query parameters, an empty array is returned.

1
2
3
4
5
6
{{ render_esi(controller('Ibexa\\Bundle\\FieldTypePage\\Controller\\BlockController::renderAction', {
    'locationId': locationId,
    'blockId': block.id,
    'versionNo': versionInfo.versionNo,
    'languageCode': field.languageCode
}, ibexa_append_cacheable_query_params(block))) }}

ibexa_page_layout()

Get the layout template of a landing page.

1
{% include ibexa_page_layout(page) with {'zones': page.zones} %}

It can be used to render a page field. For an example, you can look at how the default vendor/ibexa/fieldtype-page/src/bundle/Resources/views/fields/ibexa_landing_page.html.twig uses it.