Collection

The “Collection” type generates a field for Inline-Relational-Record-Editing (IRRE), which allows nesting of other field types as children. This field type allows building structures like image sliders, where properties beyond the image meta fields are required per child item.

It corresponds with the TCA type='inline'.

Properties

fields

| Required: true | Type: array | Default: ‘’ |

Configures a set of fields as repeatable child objects. All fields defined in Editing interface field types are possible as children. However, consider not to have too many nested Collection fields to avoid performance issues. Content Blocks are not intended to represent complex data structures. Consider to create custom tables for these cases.

Example:

fields:
  - identifier: text
    type: Text
  - identifier: image
    type: Image
maxItems

| Required: false | Type: integer | Default: ‘’ |

Maximum number of child items. Defaults to a high value. JavaScript record validation prevents the record from being saved if the limit is not satisfied.

minItems

| Required: false | Type: integer | Default: ‘’ |

Minimum number of child items. Defaults to 0. JavaScript record validation prevents the record from being saved if the limit is not satisfied.