Get selector value from sightly html page [Bit Urgent : Any thoughts on this will be helpful]

Avatar

Avatar

askdctm

Avatar

askdctm

askdctm

10-02-2016

Hi All,

Via Java code, we are able to get the selectors by "request.getRequestPathInfo().getSelectors()" . On a component html[making use of sightly code], how do I retrieve the selector value on that page.

Any thoughts on this will be really helpful.

View Entire Topic

Avatar

Avatar

Abhinav_m

Avatar

Abhinav_m

Abhinav_m

10-02-2016

use a request scoped sling model and use that to get the selector and then use that on your sightly script.