Skip to content

Commit f03a608

Browse files
authored
render_page.md: data-ibexa-block-id (#3039)
* data-ez-block-id -> data-ibexa-block-id
1 parent aeaef03 commit f03a608

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

code_samples/front/render_page/templates/themes/my_theme/layouts/sidebar.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div data-ibexa-zone-id="{{ zones[0].id }}">
33
{% if zones[0].blocks %}
44
{% for block in zones[0].blocks %}
5-
<div class="landing-page__block block_{{ block.type }}" data-ez-block-id="{{ block.id }}">
5+
<div class="landing-page__block block_{{ block.type }}" data-ibexa-block-id="{{ block.id }}">
66
{{ render_esi(controller('Ibexa\\Bundle\\FieldTypePage\\Controller\\BlockController::renderAction', {
77
'contentId': contentInfo.id,
88
'blockId': block.id,
@@ -17,7 +17,7 @@
1717
<div data-ibexa-zone-id="{{ zones[1].id }}">
1818
{% if zones[1].blocks %}
1919
{% for block in zones[1].blocks %}
20-
<div class="landing-page__block block_{{ block.type }}" data-ez-block-id="{{ block.id }}">
20+
<div class="landing-page__block block_{{ block.type }}" data-ibexa-block-id="{{ block.id }}">
2121
{{ render_esi(controller('Ibexa\\Bundle\\FieldTypePage\\Controller\\BlockController::renderAction', {
2222
'contentId': contentInfo.id,
2323
'blockId': block.id,

code_samples/tutorials/page_tutorial/templates/layouts/sidebar.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% set locationId = parameters.location is not null ? parameters.location.id : contentInfo.mainLocationId %}
55

66
{% for block in zones[0].blocks %}
7-
<div class="landing-page__block block_{{ block.type }}" data-ez-block-id="{{ block.id }}">
7+
<div class="landing-page__block block_{{ block.type }}" data-ibexa-block-id="{{ block.id }}">
88
{{ render_esi(controller('Ibexa\\Bundle\\FieldTypePage\\Controller\\BlockController::renderAction', {
99
'locationId': locationId,
1010
'contentId': contentInfo.id,
@@ -21,7 +21,7 @@
2121
{% set locationId = parameters.location is not null ? parameters.location.id : contentInfo.mainLocationId %}
2222

2323
{% for block in zones[1].blocks %}
24-
<div class="landing-page__block block_{{ block.type }}" data-ez-block-id="{{ block.id }}">
24+
<div class="landing-page__block block_{{ block.type }}" data-ibexa-block-id="{{ block.id }}">
2525
{{ render_esi(controller('Ibexa\\Bundle\\FieldTypePage\\Controller\\BlockController::renderAction', {
2626
'locationId': locationId,
2727
'contentId': contentInfo.id,
@@ -33,4 +33,4 @@
3333
{% endfor %}
3434
{% endif %}
3535
</aside>
36-
</div>
36+
</div>

docs/templating/render_content/render_page.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A layout template renders all the zones of the layout.
3030
Each zone must have a `data-ibexa-zone-id` attribute with the number of the zone.
3131

3232
The best way to display blocks in the zone is to iterate over a blocks array and render the blocks in a loop.
33-
Each block must have the `landing-page__block block_{{ block.type }}` classes and the `data-ez-block-id="{{ block.id }}` attribute.
33+
Each block must have the `landing-page__block block_{{ block.type }}` classes and the `data-ibexa-block-id="{{ block.id }}` attribute.
3434

3535
To render the "Right sidebar" layout, add the following template to `templates/themes/my_theme/layouts/sidebar.html.twig`:
3636

@@ -84,4 +84,3 @@ For example:
8484
```
8585

8686
Then, place the actual template in the imported file `templates/blocks/contentlist/new_default.html.twig`.
87-

docs/tutorials/page_and_form_tutorial/2_prepare_the_landing_page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Each column is at the same time a zone, and each zone renders the blocks that it
9292
!!! note
9393

9494
A zone in a layout template **must have** the `data-ibexa-zone-id` attribute (lines 2 and 19).
95-
A block **must have** the `data-ez-block-id` attribute (lines 7 and 24).
95+
A block **must have** the `data-ibexa-block-id` attribute (lines 7 and 24).
9696

9797
With these three elements: configuration, icon and template, the new layout is ready to use.
9898

0 commit comments

Comments
 (0)