Ordered relationships
Audience: CMS editors, integrators, and developers.
These relationship and order fields stay synchronized:
| Resource | Relationship | Order field |
|---|---|---|
| Page | banners | bannersOrder |
| Header | menuItems | menuItemsOrder |
| HeaderMenuItem | subMenuItems | subMenuItemsOrder |
| Footer | sections | sectionsOrder |
Explicit order updates
An explicit order list controls the relationship and its display order.
The CMS uses connect during creation and set during updates to make the relationship match.
Relationship updates
When the relationship changes without an explicit order update, the CMS applies these rules:
| Operation | Order change |
|---|---|
set | Replaces the complete order. |
disconnectAll | Clears the order. |
disconnect | Removes the specified IDs. |
connect | Adds IDs at the end and keeps the existing order. |
Deletion
Deleting a menu item removes its ID from every header and submenu order that contains it.
Deleting a footer section removes its ID from every Footer.sectionsOrder that contains it.
Create and edit items
The orderable field’s Create action opens the shared item drawer.
The drawer uses Keystone’s native create form, including its defaults, field visibility, required rules, and validation.
Details open the saved item in an edit drawer.
Creating an item saves that child record immediately and adds its ID to the parent form’s local order. Save the parent to connect the relationship and its order. Cancelling the parent does not delete the new child. Cancelling the create drawer adds no item. A failed create keeps the drawer and draft open. The same create action applies to ordinary lists and banner section lists.
Banner sections
An orderable banner field with mode: 'banner-sections' shows SectionMarkers as section headers.
This mode keeps the existing flat relationship and order list. It does not store nested section groups.
Other orderable relationship modes keep their existing row controls.
| Editor action | Result in the flat order |
|---|---|
| Move a section | Moves its marker and all following banners up to the next marker. |
| Move an individual banner | Moves that banner only. Moving it across a marker changes its inherited surface. |
| Change a marker’s Tag | Changes the requested surface for following content until the next marker. |
The start group Vor dem ersten Abschnitt shows inherit theme-page.
Template banners before page content also start on Page.
Template banners after page content show inherit, because they continue the preceding section in the assembled page order.
Markers select shared Tags through Abschnittsfläche (sectionSurface).
The Tag name resolves within the current Theme’s active ColorVariant.
An absent role uses that variant’s required Page surface.
Ordinary content and Hero slides follow active markers, including explicit Page markers.
Before any active marker, Hero keeps theme-hero, then theme-brand, then Page.
Functional cards and dialogs keep their explicit Panel placement.
See SectionMarkers for their rendering contract and configure theme surfaces for the editor task.