Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.06 KB

File metadata and controls

33 lines (25 loc) · 1.06 KB
description Page field and page block Twig functions provide access to configuration.
page_type reference
edition experience
month_change false

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.

{{ 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.

{% 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.