Skip to main content
sathishreddy
Level 2
March 6, 2020
Solved

Sling Resolution

Hi Team,

 

I am new to AEM and I am confusing about sling resolution.

 

I have simple URL http://mydomain.com/content/home.html

Below things I observed in blogs.

First it will search with path content/home then it found and it will take sling:resourceType that is my page component which is apps/myproject/components/page.

Then it will go to page component then it will execute page.html the same thing observed in many blogs. Here my question is if it is executes page.html then how I am able to see home.html page content?

 

Could you please clarify me.

 

Thanks,

Satish

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
March 9, 2020

To make it simple let me explain this here in another way -

 

if you access any page lets say home.html, browser looks for html to render but home.html does not have any code(jsp, html etc), it only has few properties and components but it has sling:resourceType which tell server to include code from page resource type and execute it and add response to home.html. Thats why you see the page.html rendered code. Same thing happens for components as well.

Arun Patidar

3 replies

BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
March 6, 2020

@sathishreddy,

Take a look at the Sling Resolution Part 1 & 2 Videos from Adobe:

https://www.youtube.com/watch?v=ySw7vE1hdT8

https://www.youtube.com/watch?v=d3zG1mBCQTI

 

Sling Resolution Resources by Community Experts:

https://www.youtube.com/watch?v=vkRr9O4-teo

https://www.youtube.com/watch?v=Q0qJHzvKj4Y

Translate
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 9, 2020

To make it simple let me explain this here in another way -

 

if you access any page lets say home.html, browser looks for html to render but home.html does not have any code(jsp, html etc), it only has few properties and components but it has sling:resourceType which tell server to include code from page resource type and execute it and add response to home.html. Thats why you see the page.html rendered code. Same thing happens for components as well.

Translate
Arun Patidar
VeenaVikraman
Community Advisor
Community Advisor
May 21, 2020

@sathishreddy Just wanted to add few more pointers here so that you have a better understanding on Sling Resolution. Please read through below topics where I have tried to explain the sling resolution in different scenarios. Hope it helps 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/template-component-can-t-override-page-html/qaq-p/292567

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-resource-resolution-preference/qaq-p/249373

 

 Let us know if you have anymore questions

 

Thanks

Veena

Translate