netlogix / recursivechildnodes
1.2.0
2021-03-24 16:34 UTC
Requires
- neos/neos: ^4.3 || ^5.0 || ^7.0
This package is auto-updated.
Last update: 2023-03-20 14:37:38 UTC
README
此包不再维护。请使用 Flowpack.NodeTemplates 代替。
Netlogix.RecursiveChildNodes
此包的目的是简化创建具有多个 childNodes 但至少需要一个的节点类型。一个很好的例子可能是一个节点类型“事件”,它可以通过内容集合拥有多个“日期”。
要自动在创建新事件时在“日期”内容集合内创建子节点,可以使用以下配置
'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