how does template script is resolved when a certain page is requested | Community
Skip to main content
New Participant
October 16, 2015
Solved

how does template script is resolved when a certain page is requested

  • October 16, 2015
  • 2 replies
  • 1625 views

how does template script is resolved when a certain page is requested ? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by vikramca06

Say, you have created a page using home template and it uses home component. So for example, the component path is "/apps/components/home" this path will be stored in jcr:content node when you create a page using HOME template.

example sling:resourceType =/apps/components/home property will be added to jcr:content.

When you request a page created using home template, Sling Resource Resolver will get the request and finds the path in repository and gets the the resourceType property. And it finds the component path and renders the html content from jsp file.

Thanks.

Vikram

2 replies

vikramca06
vikramca06Accepted solution
New Participant
October 16, 2015

Say, you have created a page using home template and it uses home component. So for example, the component path is "/apps/components/home" this path will be stored in jcr:content node when you create a page using HOME template.

example sling:resourceType =/apps/components/home property will be added to jcr:content.

When you request a page created using home template, Sling Resource Resolver will get the request and finds the path in repository and gets the the resourceType property. And it finds the component path and renders the html content from jsp file.

Thanks.

Vikram

New Participant
October 16, 2015