How is the script resolved by Sling when we have two selectors?

Let's say I have the following directory structure:

  • listcomponent
    • listcomponent.jsp
    • renditions
      • overview.jsp
      • full.overview.jsp

The myPage includes a list component. When accessing a URL such as http: // localhost: 4502 / content / mysite / mypage.renditions.overview.html , the .jsp script is used. However, for http: // localhost: 4502 / content / mysite / mypage.renditions.full.overview.html the listcomponent.jsp script is used.

I would like the full.overview.jsp file to be loaded in this case. What am I doing wrong?

+3


source to share


1 answer


In this case, your view .jsp should be a complete folder as shown below:

  • listcomponent

    • listcomponent.jsp
    • renditions

      • overview.jsp

      • full

        • overview.jsp


Here's a similar answer. Allowing script line order of calls

Hope this helps.

+3


source







All Articles