-
Notifications
You must be signed in to change notification settings - Fork 82
IBX-9813: Cacheable request query parameters #3033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 5.0
Are you sure you want to change the base?
Changes from all commits
c58dab5
d921f92
d31ea55
a5a41fa
f3bffe1
c87e743
393f848
ed2dd9b
afb4bf5
aaf1d09
11768ad
8ae06dc
43cdb7f
86cd14c
38085c2
4a07410
190f9c5
4430edc
44d42b2
3481d79
b76ddba
d03849f
56c2f45
7ba30c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <div> | ||
| {# The required attribute for the displayed zone #} | ||
| <div data-ibexa-zone-id="{{ zones[0].id }}"> | ||
| {# If a zone with [0] index contains any blocks #} | ||
| {% if zones[0].blocks %} | ||
| {# for each block #} | ||
| {% for block in blocks %} | ||
| {# create a new layer with appropriate ID #} | ||
| <div class="landing-page__block block_{{ block.type }}" data-ibexa-block-id="{{ block.id }}"> | ||
| {# render the block by using the "Ibexa\\Bundle\\FieldTypePage\\Controller\\BlockController::renderAction" controller #} | ||
| {# location.id is the ID of the Location of the current content item, block.id is the ID of the current block #} | ||
| {{ 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))) }} | ||
| </div> | ||
| {% endfor %} | ||
| {% endif %} | ||
| </div> | ||
| </div> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --- | ||
| description: Page field and page block Twig functions provide access to configuration. | ||
| page_type: reference | ||
| edition: experience | ||
| month_change: true | ||
| --- | ||
|
|
||
| # Page Twig functions | ||
|
Check notice on line 8 in docs/templating/twig_function_reference/page_twig_functions.md
|
||
|
|
||
| ## `ibexa_append_cacheable_query_params()` | ||
|
|
||
| Get the query parameters of a page block as [configured in `cacheable_query_params`](page_blocks.md#block-configuration). | ||
| If the block type has no configured query parameters, an empty array is returned. | ||
|
Check notice on line 13 in docs/templating/twig_function_reference/page_twig_functions.md
|
||
|
|
||
| ```twig | ||
| {{ 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))) }} | ||
|
Check failure on line 21 in docs/templating/twig_function_reference/page_twig_functions.md
|
||
| ``` | ||
|
|
||
| ## `ibexa_page_layout()` | ||
|
|
||
| Get the layout template of a landing page. | ||
|
|
||
| ```twig | ||
| {% include ibexa_page_layout(page) with {'zones': page.zones} %} | ||
| ``` | ||
|
|
||
| It can be used to render a [page field](pagefield.md). | ||
|
Check notice on line 32 in docs/templating/twig_function_reference/page_twig_functions.md
|
||
| 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. | ||
Uh oh!
There was an error while loading. Please reload this page.