netlogix / recursivechildnodes
Neos Package to recursively generate childNodes on node creation
Installs: 2 708
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- neos/neos: ^4.3 || ^5.0 || ^7.0
This package is auto-updated.
Last update: 2023-03-20 14:37:38 UTC
README
This package is no longer maintained. Please use Flowpack.NodeTemplates instead.
Netlogix.RecursiveChildNodes
The purpose of this package is to ease the creation of new nodeTypes that can have
multiple childNodes but require at least one. A good example might be a nodeType Event
that could have multiple dates
through a ContentCollection.
To automatically create child nodes inside the dates
ContentCollection when
creating a new Event, the following configuration could be used:
'Netlogix.NodeTypes:Event': superTypes: 'Neos.Neos:Document': true options: recursiveChildNodes: # Recursive child nodes can be configured here dates: # Name of the first childNode - type: 'Netlogix.NodeTypes:EventDate' options: recursiveChildNodes: # Infinite recursion, yay! items: - type: 'Netlogix.NodeTypes:SomeOtherNodeType' ui: label: 'Event' group: 'general' icon: 'icon-calendar' childNodes: dates: type: 'Neos.Neos:ContentCollection' constraints: '*': false 'Netlogix.NodeTypes:EventDate': true main: constraints: nodeTypes: '*': true