Hi... sling:alias only works within the same path segment, i.e. if
/some/path/j...@sling:alias = jpg then you could request either /some/path/jpeg or /some/path/jpg and get the resource at /some/path/jpeg. JCR 2 Shareable Nodes might be a solution for you. Or take a look at SLING-1778. Justin On Tue, Nov 2, 2010 at 4:07 PM, sam lee <[email protected]> wrote: > Hey, > > I want: > GET /some/path/jpeg.tidy.infinity.json > > to be equivalent to: > GET /some/other/path/foo.tidy.infinity.json > > I tried: > /some/path/jpeg/sling:resourceType = /some/other/path/foo > and > /some/path/jpeg/sling:resourceSuperType = /some/other/path/foo > > but, the json returned by > GET /some/path/jpeg.tidy.infinity.json > is not same as the json returned by > GET /some/other/path/foo.tidy.inifinity.json > > Should I use something other than sling:resourceType ? > sling:alias? > > Thanks. > Sam >
