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

Introduce !overrideAll for yaml files

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    Description

      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

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD