punktDe / nodereplicator

Replicate Neos node structure and content to other content dimensions
MIT License
7 stars 6 forks source link

childNodes replication #12

Open signalwerk opened 3 years ago

signalwerk commented 3 years ago

I have a Node (vendor.package:Content.Columns.One) that uses nodereplication (via vendor.package:Constraint.Replication). In the node there is one childNodes (column0). If I create this node I get an invalid node in the other dimension, because the childNodes were not created. Do I do something wrong or is that not supported?

config:

# Node
'vendor.package:Content.Columns.One':
  superTypes:
    'Neos.Neos:Content': true
    'vendor.package:Constraint.Replication': true
  childNodes:
    column0:
      type: 'vendor.package:Collection.Content.Column'

# Collection
'vendor.package:Collection.Content.Column':
  superTypes:
    Neos.Neos:ContentCollection: true
    'vendor.package:Constraint.Replication': true
  constraints:
    nodeTypes:
      '*': false
      'vendor.package:Content.Text': true
      'vendor.package:Content.Image': true

# Replication
"vendor.package:Constraint.Replication":
  abstract: true
  options:
    replication:
      structure: true
      content: true
      updateEmptyPropertiesOnly: true
      createHidden: true
GuangHa commented 3 years ago

I have the same problem, I think its a bug.