Skip to content

Lab: Section Field Adapter#7859

Draft
bastianallgeier wants to merge 3 commits intov6/developfrom
v6/refact/section-fields
Draft

Lab: Section Field Adapter#7859
bastianallgeier wants to merge 3 commits intov6/developfrom
v6/refact/section-fields

Conversation

@bastianallgeier
Copy link
Member

@bastianallgeier bastianallgeier commented Jan 5, 2026

Changelog

Enhancements

  • New Kirby\Form\Field\SectionField, which serves as a wrapper around our old sections. This makes it possible to use any section in fields by simply writing something like:
fields: 
  drafts: 
    type: section
    section: pages
    status: drafts
    layout: cards

This enhancement is not just simplifying blueprint setups by being able to only use fields. Section fields can now also make use of when queries and field widths this way for even more options.

  • New <k-model-form> component to handle forms in model views. This new form will now load fields directly into each column without wrapping them in sections. It gets the fields props for the current tab from the refactored model view controller. If there are still old sections, those will now be loaded as fields with the help of the new SectionField (see above) This will drastically reduce the number of async requests to build a model view. It feels a lot snappier in general, but when there are slow, complex fields, the initial loading time for a view might feel a bit longer.

Breaking changes

  • The tab response in model views no longer contains section definitions. The hierarchy is now tab > column > fields. All old sections are automatically converted to section fields.

@bastianallgeier bastianallgeier force-pushed the v6/refact/section-fields branch 10 times, most recently from b07fd22 to 980eca5 Compare January 8, 2026 15:15
@bastianallgeier bastianallgeier force-pushed the v6/refact/section-fields branch 2 times, most recently from 304790f to 4a8e507 Compare January 22, 2026 14:00
@bastianallgeier bastianallgeier force-pushed the v6/refact/section-fields branch from 4a8e507 to ea10499 Compare February 3, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant