Image¶
The "Image" type generates a field for image relations.
It corresponds with the TCA type='inline'
with FAL relation.
Properties¶
- 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.
- required
| Required: false | Type: boolean | Default: 'false' |
If set, the field will become mandatory.
Example¶
group: common
fields:
- identifier: image
type: Image
properties:
maxItems: 2
minItems: 1
required: true