Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5468

Resource Merger: Provide a way to completely replace the underlying resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Resource Merger 1.2.10
    • Resource Merger 1.3.2
    • Extensions
    • None

    Description

      Currently whenever the mount point of the MergingResourcePicker (/mnt/overlay) or OverridingResourcePicker (/mnt/override) is used, the merging always takes place. It is only possible to hide/modify individual resource/properties of the underlying resources but not to completely disable the inheritance (and by that replace the whole overriden/overlaid resource).

      A concrete usecase for that is in a CMS (e.g. AEM) where the dialog definitions are always loaded via /mnt/override/<resource type>. In that case it is not easily possible to completely replace the dialog of the resource super type (as only individual child resources or properties can be hidden but there is no special property to ignore the inherited resource alltogether).

      I propose the following:
      Add a new property sling:disregardInheritedResource=true in which case all the inherited resources would not be taken into account for merging.

      Attachments

        1. SLING-5468-v1.patch
          39 kB
          Konrad Windszus
        2. SLING-5468-v2.patch
          49 kB
          Konrad Windszus

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: