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

Context-Aware Config: Adapt defaulting strategy

    XMLWordPrintableJSON

Details

    Description

      as discusesd in mail thread http://apache-sling.73963.n3.nabble.com/contextaware-config-Default-configuration-and-naming-td4064399.html we should change:

      • default folder name to /conf
      • rename the sling:config property name to sling:config-ref
      • and change the way default configuration is detected by following the example below

      for a content structure like this

       /content
         /tenant1   - context path /content/tenant1
           /region1 - context path /content/tenant1/region1
             /site1 - context path /content/tenant1/region1/site1
               /page1
      

      the configuration is looked up at this paths (in this order)

       /conf/tenant1/region1/site1
       /conf/tenant1/region1
       /conf/tenant1
       /conf/global
       /apps/conf
       /libs/conf
      

      Attachments

        Activity

          People

            sseifert Stefan Seifert
            sseifert Stefan Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: