Skip to content

Admin: Let custom components lay out the fields of sections - #443

Merged
lehni merged 1 commit into
mainfrom
feature/layout-sections
Oct 19, 2026
Merged

lehni merged 1 commit into
mainfrom
feature/layout-sections

Conversation

@lehni

@lehni lehni commented Oct 19, 2026

Copy link
Copy Markdown
Contributor
  • Add the section option component, which renders the section's components through a Vue component inside its pane, with the section's label above it
  • Add the public DitoField, which places one of them as the pane would and passes its slot on to custom components
  • Pass the layout through DitoSchema and DitoPane, so sections keep their events, contexts and component paths
  • Reject tabs, collapsible and clipboard together with component
  • Document layouts in the custom types guide and the section API

- Add the section option `component`, which renders the section's components through a Vue component inside its pane, with the section's label above it
- Add the public `DitoField`, which places one of them as the pane would and passes its slot on to custom components
- Pass the layout through `DitoSchema` and `DitoPane`, so sections keep their events, contexts and component paths
- Reject `tabs`, `collapsible` and `clipboard` together with `component`
- Document layouts in the custom types guide and the section API
@lehni
lehni added this pull request to stack #445 October 19, 2026 14:16
@lehni
lehni merged commit 88fd185 into main Oct 19, 2026
8 checks passed
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.

1 participant