Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8764

Introduce !overrideAll for yaml files

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 6.2.43
    • yaml
    • 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.

      https://docs.magnolia-cms.com/product-docs/6.2/Administration/Architecture/Configuration-management.html#_overriding

      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

        Acceptance criteria

              Unassigned Unassigned
              fillsinger Fabian Illsinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:

                  Task DoD