I created a custom node with a childnode and would like to auto-create additional childnodes when creating my node. I’ve got a carousel with a contentCollection that should only carry images. And the first image should be added automatically. I created the following configuration:
'vendor.SitePackage:Carousel':
superTypes:
'Neos.Neos:Content': TRUE
childNodes:
carouselItems:
type: 'Neos.Neos:ContentCollection'
childNodes:
firstImage:
type: 'Neos.NodeTypes:Image'
constraints:
nodeTypes:
'Neos.NodeTypes:Image': True
'*': false
ui:
label: 'Carousel'
group: 'general'
icon: 'icon-picture'
inlineEditable: TRUE
How can this be done?