Nested Items

Nested Items

Content Field

nesteditems - creates nested records belonging exclusively to the current record.

items:
    label: Menu Items
    type: nesteditems
    span: adaptive
    form:
        fields:
            title:
                label: Title
                type: text

Nested Items Tutorial

This video demonstrates how to implement the Nested Items content field using step by step instructions.

Watch the tutorial

The following properties are supported.

Property Description
label a name when displaying the form field to the user.
default specifies a default array value, optional.
comment places a descriptive comment below the field.
form inline form field definitions.
maxDepth displays an interface for reordering records, specifying the maximum depth. Set to 0 for unlimited depth.
customMessages customize the messages used in the user interface.

Like any other form, nested items support the use of tabs by placing the fields under the tabs or secondaryTabs properties of the form definition.

tabbed_content:
    type: nesteditems
    form:
        tabs:
            fields:
                # ...

The customMessages property is used to modify the various messages used on the field definition. The available messages are shared with the Relation Controller behavior messages.

author:
    type: nesteditems
    customMessages:
        buttonCreate: New Author
        titleUpdateForm: Update Author
        titleCreateForm: Create Author

# See Also

On This Page