Skip to content

Migration for nested elements#75

Merged
dmolineus merged 2 commits into
contao-bootstrap:feaure/nested-elementsfrom
cboelter:feaure/nested-elements
Jun 2, 2026
Merged

Migration for nested elements#75
dmolineus merged 2 commits into
contao-bootstrap:feaure/nested-elementsfrom
cboelter:feaure/nested-elements

Conversation

@cboelter

@cboelter cboelter commented May 7, 2026

Copy link
Copy Markdown
Contributor

As discussed in #74 here is a new proposal for the nested fragments migration. After checking the migration and the result a bit deeper I saw that nested grids where not detected correctly. So I asked claude to build a better implementation with me. Now it supports nested grids and migrates also the gridSeparators to element_groups.

If there is a separator and before the separator are more than one Elements these elements are also put into a element_group. I'm not 100% sure that this is the correct behaviour. I think a better approach would be to get the grid configuration and then decide which elements would be grouped into element_groups? Maybe you have some input for me :-)

@dmolineus dmolineus merged commit 55dfff2 into contao-bootstrap:feaure/nested-elements Jun 2, 2026
@dmolineus

Copy link
Copy Markdown
Member

Thanks. Your approach did not work completely in my example project so I decided to refactor it. It scans now for start elements and handle the migration. Could you give it a try, a6cfdec?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants