Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Selector IN URL

Avatar

Level 4

Hi Team

              In URL we have selector. What role plays a selector here. Can anyone explain.

                      

Thank You

1 Accepted Solution

Avatar

Correct answer by
Level 10

It's just an alternate method to render the content.

It might be used to execute the different component scripts or some servlet would be using it.

Will recommend you to see basics of sling request processing, something I think every dev should be aware of - > The Basics

Thanks

View solution in original post

0 Replies

Avatar

Correct answer by
Level 10

It's just an alternate method to render the content.

It might be used to execute the different component scripts or some servlet would be using it.

Will recommend you to see basics of sling request processing, something I think every dev should be aware of - > The Basics

Thanks

Avatar

Administrator

Selectors can be used to display the same content in an alternative format.

Please have a look at this community article:- http://www.aemcq5tutorials.com/tutorials/sling-resource-resolution-aem/ and http://blogs.adobe.com/contentmanagement/tag/selectors/

Refer to this old forum post:- Sling Resource Resolution Preference

//if the user request a content as --> <path>.<selector...>.<extension>

Then for the request resolution files ending with <selector>.<extension>.<script extension> takes priority