Hi,

the mappings are ordered by pattern length - the once with the longest
pattern is used first. Other than that there is no way to influence or
define the order. One a pattern matches and is used, no other pattern
is checked anymore.

Regards
Carsten

2013/1/30 Harsh Vardhan Rai <[email protected]>:
> Hi Dev! Group,
>
> [a]
> http://www.mytest.en/content/www- mytest 
> -de/templated/products/2play/2play-table/_jcr_content/template.f11540417747be0409f5158adbedb16d.css
> =>
> /content/www- mytest 
> -en/templated/products/2play/2play-table/jcr:content/template.css
>
> [b]
> http://www. 
> mytest.en/_jcr_content/right_column_bottom/now_and_next/nowandnext.914829d358cdcb55a625a1ef1cb54d1e.css
> =>
> /content/www- mytest 
> -en/en/jcr:content/right_column_bottom/now_and_next/nowandnext.914829d358cdcb55a625a1ef1cb54d1e.css
>
> With following etc/map/http: mappings on OSGi console
>
> ^http/www. mytest.en.80/(.+/jcr:content/.+).[0-9a-f]{32}.(js|css) 
> /content/www- mytest -en/en/$1.$2 internal
> ^http/www. mytest.en.80/(content/.+).[0-9a-f]{32}.(js|css) /$1.$2 internal
>
> So my question is can set an order [a kind of ranking so that [a] renders 
> first then only [b] or some sort of ordered rendering of urls] How can I tell 
> Sling Resource Resolver in which order to execute the mappings? How does 
> Sling Resource Resolver determines the order?
>
> A response would be appreciated. Thanks in advance.
>
> Regards,
> Harsh V Rai
> Tech. Consultant
> Extn. 34267
> [email protected]<mailto:[email protected]>
>



-- 
Carsten Ziegeler
[email protected]

Reply via email to