Hey Vkum, We use osgi configs per site for this :). We define per sitename the fallback roots (so that would in your example be site1 and if not available fall back to generic)
Greets Roy > On 14 Jul 2016, at 14:48, vkum14 <[email protected]> wrote: > > Hi Roy, > > My apology here if I asked the same information. You have been great help > :). > I guess the only thing which is still not clear (and might be either I was > not able to explain or I didn't get it right) to me is the 2nd point in my > email below. I got your point on using a separate resourceType and that > works great but what about the following scenario: > 1. resourceType is changed from /apps/site/components/comp1 to > /apps/site1/components/comp1 based on request for a page under site1. > 2. My scripts reside in 2 folders than just one: > a) /<root>/site1/components/comp1 > b) /<root>/generic/components/comp1 > and I want to use all the scripts under these 2 folders to be used in > weighted alogorith for sling to find the best match, I am not sure how to do > that. I am thinking to use ResoureProvider here like ResourceMerger does. > Thanks so much again for all the help. > > > > -- > View this message in context: > http://apache-sling.73963.n3.nabble.com/One-Resource-to-multiple-views-in-different-locations-tp4061093p4062556.html > Sent from the Sling - Users mailing list archive at Nabble.com.
