Skip to content

Replaced "type" attribute type with a real example - #3031

Merged
mnocon merged 1 commit into
5.0from
page-builder-attribute-type
Feb 3, 2026
Merged

mnocon merged 1 commit into
5.0from
page-builder-attribute-type

Conversation

@mnocon

@mnocon mnocon commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Feb 2, 2026

Copy link
Copy Markdown

Preview of modified files: no change to preview.

@github-actions

github-actions Bot commented Feb 2, 2026

Copy link
Copy Markdown

code_samples/ change report

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

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

docs/content_management/pages/page_block_attributes.md@139:``` yaml
docs/content_management/pages/page_block_attributes.md@140:[[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 0, 16) =]][[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 19, 23) =]]
docs/content_management/pages/page_block_attributes.md@141:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ block_name:
004⫶ category: default
005⫶ thumbnail: 'path/icons.svg'
006⫶ views:
007⫶ default: { name: 'Default block layout', template: 'template.html.twig', priority: -255 }
008⫶ attributes:
009⫶ group:
010⫶ name: Group name
011⫶ type: nested_attribute
012⫶ options:
013⫶ attributes:
014⫶ attribute_1:
015⫶ name: Name 1

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

docs/content_management/pages/page_block_attributes.md@139:``` yaml
docs/content_management/pages/page_block_attributes.md@140:[[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 0, 16) =]][[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 19, 23) =]]
docs/content_management/pages/page_block_attributes.md@141:```

001⫶ibexa_fieldtype_page:
002⫶ blocks:
003⫶ block_name:
004⫶ category: default
005⫶ thumbnail: 'path/icons.svg'
006⫶ views:
007⫶ default: { name: 'Default block layout', template: 'template.html.twig', priority: -255 }
008⫶ attributes:
009⫶ group:
010⫶ name: Group name
011⫶ type: nested_attribute
012⫶ options:
013⫶ attributes:
014⫶ attribute_1:
015⫶ name: Name 1
016⫶                                type: type
016⫶                                type: string
017⫶                            attribute_2:
018⫶ name: Name 2
017⫶                            attribute_2:
018⫶ name: Name 2
019⫶                                type: type
019⫶                                type: string
020⫶                        multiple: true

docs/content_management/pages/page_block_attributes.md@145:``` yaml
docs/content_management/pages/page_block_attributes.md@146:[[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 9, 19) =]]
docs/content_management/pages/page_block_attributes.md@147:```

001⫶ name: Group name
002⫶ type: nested_attribute
003⫶ options:
004⫶ attributes:
005⫶ attribute_1:
006⫶ name: Name 1
020⫶                        multiple: true

docs/content_management/pages/page_block_attributes.md@145:``` yaml
docs/content_management/pages/page_block_attributes.md@146:[[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 9, 19) =]]
docs/content_management/pages/page_block_attributes.md@147:```

001⫶ name: Group name
002⫶ type: nested_attribute
003⫶ options:
004⫶ attributes:
005⫶ attribute_1:
006⫶ name: Name 1
007⫶                                type: type
007⫶                                type: string
008⫶                                validators:
009⫶ not_blank:
010⫶ message: 'Provide a value'

docs/content_management/pages/page_block_attributes.md@151:``` yaml
docs/content_management/pages/page_block_attributes.md@152:[[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 9, 16) =]] [[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 19, 26) =]]
docs/content_management/pages/page_block_attributes.md@153:```

001⫶ name: Group name
002⫶ type: nested_attribute
003⫶ options:
004⫶ attributes:
005⫶ attribute_1:
006⫶ name: Name 1
008⫶                                validators:
009⫶ not_blank:
010⫶ message: 'Provide a value'

docs/content_management/pages/page_block_attributes.md@151:``` yaml
docs/content_management/pages/page_block_attributes.md@152:[[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 9, 16) =]] [[= include_file('code_samples/page/custom_page_block/config/packages/nested_attribute.yaml', 19, 26) =]]
docs/content_management/pages/page_block_attributes.md@153:```

001⫶ name: Group name
002⫶ type: nested_attribute
003⫶ options:
004⫶ attributes:
005⫶ attribute_1:
006⫶ name: Name 1
007⫶                                type: type
007⫶                                type: string
008⫶                             attribute_2:
009⫶ name: Name 2
008⫶                             attribute_2:
009⫶ name: Name 2
010⫶                                type: type
010⫶                                type: string
011⫶                        multiple: true
012⫶ validators:
013⫶ not_blank:
014⫶ message: 'Provide a value'

011⫶                        multiple: true
012⫶ validators:
013⫶ not_blank:
014⫶ message: 'Provide a value'

Download colorized diff

@mnocon
mnocon marked this pull request as ready for review February 2, 2026 11:26

@reithor reithor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@adriendupuis adriendupuis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks more realistic!
Thank you @reithor for reporting this.

@mnocon
mnocon merged commit 9b6cb11 into 5.0 Feb 3, 2026
10 checks passed
@mnocon
mnocon deleted the page-builder-attribute-type branch February 3, 2026 15:21
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