Add and arrange mixed items¶
Experimental
The Compound Field: Dynamic sub-module is experimental. Don't use it on production sites yet.
Set up the Schedule field first.
- Open Content → Add content → Conference and enter a title.
- In Schedule, select Add Tracks. Enter Main stage as Track name.
- Inside the track, select Add Sessions and enter Opening keynote as Session title.
- Below the track, select Add Notices and enter a message.
- Save and reopen the form to check the order and the session inside the track.
The add controls follow the field's Add mode: one button per type, a type list with an Add button, or a dropdown button. A type disappears from them once its limit is reached, and the control says why. Each parent has its own add control for the items it may hold.
Arrange items¶
- Drag an item by its handle to reorder it within its own level.
- When the field allows moving, an item that may go inside a parent has a Move to… list. Choose the top level or a parent, then select Move. Choosing alone moves nothing.
- Remove removes an item. Removing a parent also removes the items inside it, and the button's accessible name says how many.
- Collapse all and Edit all close or open every item at the top level. Each parent has its own pair for the items inside it.
Unsaved values survive adding, moving and removing items.
Items you cannot edit¶
An item you may not edit shows locked, with a note: its type is edited in another field, or you lack permission. You cannot move or remove it. A parent that holds a locked item cannot be removed; its Remove button explains why.
Save¶
A parent whose own fields are empty is kept when an item inside it has content, so a track can hold sessions without a name of its own. An empty parent with only empty items inside is dropped without an error, unless its type has required sub-fields: those report that they are required.
A parent with fewer items of a type than its minimum stops the save with "%parent needs at least 1 %child item." or the plural form, on the parent. Required sub-fields report their usual errors on the item. Errors inside a closed item open it.