-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
6.2.43
-
None
Hello,
the "override" mechanism works quite different for yaml and JCR.
In JCR the override will completely override all properties and subnodes, whereas in yaml an override only overrides all properties of that node.
Here the Magnolia documentation:
JCR
An override allows the extending node to completely remove the inherited content and replace it with its own content entries.
YAML
Use !override to completely ignore the properties of an inherited or included node. As a consequence, you have to add specify properties to the given node.
https://docs.magnolia-cms.com/product-docs/6.2/Developing/YAML.html#_yaml_override
It would be good to have a "!overrideAll" keyword for yaml definitions, so it would be possible to overwrite a whole node including subnodes (like in JCR).
Best Regards
Fabian