Skip to content

Conversation

mnocon
Copy link
Contributor

@mnocon mnocon commented Oct 14, 2025

@mnocon mnocon marked this pull request as ready for review October 15, 2025 09:14
@mnocon mnocon requested review from ViniTou and konradoboza October 15, 2025 09:14
@mnocon mnocon requested a review from a team October 15, 2025 09:24
@ezrobot ezrobot requested review from adriendupuis, dabrt and julitafalcondusza and removed request for a team October 15, 2025 09:24
Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
Copy link

code_samples/ change report

Before (on target branch)After (in current PR)

code_samples/forms/custom_form_field/config/packages/form_builder.yaml

docs/content_management/forms/create_custom_form_field.md@15:``` yaml
docs/content_management/forms/create_custom_form_field.md@16:[[= include_file('code_samples/forms/custom_form_field/config/packages/form_builder.yaml') =]]
docs/content_management/forms/create_custom_form_field.md@17:```

001⫶ibexa_form_builder:
002⫶ fields:
003⫶ country:

code_samples/forms/custom_form_field/config/packages/form_builder.yaml

docs/content_management/forms/create_custom_form_field.md@15:``` yaml
docs/content_management/forms/create_custom_form_field.md@16:[[= include_file('code_samples/forms/custom_form_field/config/packages/form_builder.yaml') =]]
docs/content_management/forms/create_custom_form_field.md@17:```

001⫶ibexa_form_builder:
002⫶ fields:
003⫶ country:
004⫶            name: Country
005⫶ category: Custom form fields
004⫶            name: country_field.name
005⫶ category: custom_category.name
006⫶            thumbnail: '/bundles/ibexaplatformicons/img/all-icons.svg#places'
007⫶ attributes:
008⫶ label:
006⫶            thumbnail: '/bundles/ibexaplatformicons/img/all-icons.svg#places'
007⫶ attributes:
008⫶ label:
009⫶                    name: Display label
009⫶                    name: country_field.label.name
010⫶                    type: string
011⫶ validators:
012⫶ not_blank:
013⫶ message: You must provide a label for the field
014⫶ help:
010⫶                    type: string
011⫶ validators:
012⫶ not_blank:
013⫶ message: You must provide a label for the field
014⫶ help:
015⫶                    name: Help text
015⫶                    name: country_field.help.name
016⫶                    type: string
017⫶ validators:
018⫶ required: ~


code_samples/page/custom_page_block/config/packages/page_blocks.yaml

docs/content_management/pages/create_custom_page_block.md@20:``` yaml
docs/content_management/pages/create_custom_page_block.md@21:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 6) =]][[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 16, 49) =]]
docs/content_management/pages/create_custom_page_block.md@22:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
016⫶                    type: string
017⫶ validators:
018⫶ required: ~


code_samples/page/custom_page_block/config/packages/page_blocks.yaml

docs/content_management/pages/create_custom_page_block.md@20:``` yaml
docs/content_management/pages/create_custom_page_block.md@21:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 6) =]][[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 16, 49) =]]
docs/content_management/pages/create_custom_page_block.md@22:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
004⫶            name: Event Block
005⫶ category: Custom
004⫶            name: event_block.name
005⫶ category: custom_category.name
006⫶            thumbnail: /bundles/ibexaicons/img/all-icons.svg#date
007⫶ attributes:
008⫶ name:
009⫶ type: text
006⫶            thumbnail: /bundles/ibexaicons/img/all-icons.svg#date
007⫶ attributes:
008⫶ name:
009⫶ type: text
010⫶                    name: Event name
010⫶                    name: event_block.name.name
011⫶                    validators:
012⫶ not_blank:
011⫶                    validators:
012⫶ not_blank:
013⫶                            message: Please provide a name
013⫶                            message: validators.message.event_block.name.validator.not_blank
014⫶                category:
015⫶ type: select
014⫶                category:
015⫶ type: select
016⫶                    name: Select a category
016⫶                    name: event_block.category.name
017⫶                    value: visual
018⫶ options:
019⫶ multiple: true
020⫶ choices:
021⫶ 'Music': music
022⫶ 'Visual arts': visual
023⫶ 'Sports': sports
024⫶ event:
025⫶ type: embed
017⫶                    value: visual
018⫶ options:
019⫶ multiple: true
020⫶ choices:
021⫶ 'Music': music
022⫶ 'Visual arts': visual
023⫶ 'Sports': sports
024⫶ event:
025⫶ type: embed
026⫶                    name: Event
026⫶                    name: event_block.event.name
027⫶                    options:
028⫶ udw_config_name: block_event_embed
029⫶ validators:
030⫶ not_blank:
027⫶                    options:
028⫶ udw_config_name: block_event_embed
029⫶ validators:
030⫶ not_blank:
031⫶                            message: Please select an event
031⫶                            message: validators.message.event_block.embed.validator.not_blank
032⫶                        content_type:
032⫶                        content_type:
033⫶                            message: Please select an event
033⫶                            message: validators.message.event_block.embed.validator.content_type
034⫶                            options:
035⫶ types: ['event']
036⫶ regexp:
034⫶                            options:
035⫶ types: ['event']
036⫶ regexp:
037⫶                            message: Choose a content item
037⫶                            message: validators.message.event_block.embed.validator.content_item
038⫶                            options:
039⫶ pattern: '/[0-9]+/'

038⫶                            options:
039⫶ pattern: '/[0-9]+/'

docs/content_management/pages/create_custom_page_block.md@41:``` yaml
docs/content_management/pages/create_custom_page_block.md@42:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 50, 59) =]]
docs/content_management/pages/create_custom_page_block.md@43:```
docs/content_management/pages/create_custom_page_block.md@70:``` yaml
docs/content_management/pages/create_custom_page_block.md@71:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 50, 59) =]]
docs/content_management/pages/create_custom_page_block.md@72:```

001⫶ibexa:
002⫶ system:
003⫶ default:
004⫶ universal_discovery_widget_module:
005⫶ configuration:
006⫶ block_event_embed:
007⫶ multiple: false
008⫶ allowed_content_types: ['event']


001⫶ibexa:
002⫶ system:
003⫶ default:
004⫶ universal_discovery_widget_module:
005⫶ configuration:
006⫶ block_event_embed:
007⫶ multiple: false
008⫶ allowed_content_types: ['event']

docs/content_management/pages/create_custom_page_block.md@54:``` yaml
docs/content_management/pages/create_custom_page_block.md@55:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 3) =]][[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 7, 16) =]]
docs/content_management/pages/create_custom_page_block.md@56:```
docs/content_management/pages/create_custom_page_block.md@83:``` yaml
docs/content_management/pages/create_custom_page_block.md@84:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 3) =]][[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 7, 16) =]]
docs/content_management/pages/create_custom_page_block.md@85:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
004⫶ views:
005⫶ default:
006⫶ template: '@ibexadesign/blocks/event/template.html.twig'

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
004⫶ views:
005⫶ default:
006⫶ template: '@ibexadesign/blocks/event/template.html.twig'
007⫶                    name: Default view
007⫶                    name: event_block.view.default
008⫶                    priority: -255
009⫶ featured:
010⫶ template: '@ibexadesign/blocks/event/featured_template.html.twig'
008⫶                    priority: -255
009⫶ featured:
010⫶ template: '@ibexadesign/blocks/event/featured_template.html.twig'
011⫶                    name: Featured view
011⫶                    name: event_block.view.featured
012⫶                    priority: 50

012⫶                    priority: 50

docs/content_management/pages/create_custom_page_block.md@123:``` yaml
docs/content_management/pages/create_custom_page_block.md@124:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 7) =]]
docs/content_management/pages/create_custom_page_block.md@125:```
docs/content_management/pages/create_custom_page_block.md@152:``` yaml
docs/content_management/pages/create_custom_page_block.md@153:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 7) =]]
docs/content_management/pages/create_custom_page_block.md@154:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
004⫶            name: Event Block
005⫶ category: Custom
004⫶            name: event_block.name
005⫶ category: custom_category.name
006⫶            thumbnail: /bundles/ibexaicons/img/all-icons.svg#date
007⫶ configuration_template: '@ibexadesign/blocks/event/config.html.twig'

docs/content_management/pages/page_blocks.md@33:``` yaml
docs/content_management/pages/page_blocks.md@34:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 12) =]][[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 16, 17) =]]# ...
docs/content_management/pages/page_blocks.md@35:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
006⫶            thumbnail: /bundles/ibexaicons/img/all-icons.svg#date
007⫶ configuration_template: '@ibexadesign/blocks/event/config.html.twig'

docs/content_management/pages/page_blocks.md@33:``` yaml
docs/content_management/pages/page_blocks.md@34:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 12) =]][[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 16, 17) =]]# ...
docs/content_management/pages/page_blocks.md@35:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
004⫶            name: Event Block
005⫶ category: Custom
004⫶            name: event_block.name
005⫶ category: custom_category.name
006⫶            thumbnail: /bundles/ibexaicons/img/all-icons.svg#date
007⫶ configuration_template: '@ibexadesign/blocks/event/config.html.twig'
008⫶ views:
009⫶ default:
010⫶ template: '@ibexadesign/blocks/event/template.html.twig'
006⫶            thumbnail: /bundles/ibexaicons/img/all-icons.svg#date
007⫶ configuration_template: '@ibexadesign/blocks/event/config.html.twig'
008⫶ views:
009⫶ default:
010⫶ template: '@ibexadesign/blocks/event/template.html.twig'
011⫶                    name: Default view
011⫶                    name: event_block.view.default
012⫶                    priority: -255
013⫶ attributes:
014⫶# ...

012⫶                    priority: -255
013⫶ attributes:
014⫶# ...

docs/content_management/pages/page_blocks.md@55:``` yaml
docs/content_management/pages/page_blocks.md@56:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 3) =]][[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 7, 16) =]]
docs/content_management/pages/page_blocks.md@57:```
docs/content_management/pages/page_blocks.md@56:``` yaml
docs/content_management/pages/page_blocks.md@57:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 3) =]][[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 7, 16) =]]
docs/content_management/pages/page_blocks.md@58:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
004⫶ views:
005⫶ default:
006⫶ template: '@ibexadesign/blocks/event/template.html.twig'

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
004⫶ views:
005⫶ default:
006⫶ template: '@ibexadesign/blocks/event/template.html.twig'
007⫶                    name: Default view
007⫶                    name: event_block.view.default
008⫶                    priority: -255
009⫶ featured:
010⫶ template: '@ibexadesign/blocks/event/featured_template.html.twig'
008⫶                    priority: -255
009⫶ featured:
010⫶ template: '@ibexadesign/blocks/event/featured_template.html.twig'
011⫶                    name: Featured view
011⫶                    name: event_block.view.featured
012⫶                    priority: 50

012⫶                    priority: 50

docs/content_management/pages/page_blocks.md@74:``` yaml
docs/content_management/pages/page_blocks.md@75:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 7) =]]
docs/content_management/pages/page_blocks.md@76:```
docs/content_management/pages/page_blocks.md@75:``` yaml
docs/content_management/pages/page_blocks.md@76:[[= include_file('code_samples/page/custom_page_block/config/packages/page_blocks.yaml', 0, 7) =]]
docs/content_management/pages/page_blocks.md@77:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ event:
004⫶            name: Event Block
005⫶ category: Custom
004⫶            name: event_block.name
005⫶ category: custom_category.name
006⫶            thumbnail: /bundles/ibexaicons/img/all-icons.svg#date
007⫶ configuration_template: '@ibexadesign/blocks/event/config.html.twig'

006⫶            thumbnail: /bundles/ibexaicons/img/all-icons.svg#date
007⫶ configuration_template: '@ibexadesign/blocks/event/config.html.twig'

Download colorized diff

@mnocon mnocon merged commit 600331d into 4.6 Oct 15, 2025
7 checks passed
@mnocon mnocon deleted the block-field-translations branch October 15, 2025 23:45
mnocon added a commit that referenced this pull request Oct 16, 2025
#2933)

* Extended the examples to showcase translations for custom page blocks and form fields

* Update docs/content_management/pages/create_custom_page_block.md

Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>

---------

Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants