Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

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