lala/recursivechildnodes

This package is abandoned and no longer maintained. The author suggests using the 1 package instead.


Last activity on 3 March 2021
  • 53
composer require lala/recursivechildnodes

Neos Package to recursively generate childNodes on node creation

1.2.0

This version is abandoned and no longer maintained. The author suggests using the 1 package instead.


Neos Package to recursively generate childNodes on node creation

Version
1.2.0
Type
neos-package
Release Date
24.03.2021 16:34:52
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT bd026fb76a842f7387335e9cacce2639f72dc047

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
The content of the readme is provided by Github
The same vendor provides 3 package(s).