Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Sling Resolution

Avatar

Avatar
Ignite 1
Level 1
sathishreddy
Level 1

Likes

0 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
View profile

Avatar
Ignite 1
Level 1
sathishreddy
Level 1

Likes

0 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
View profile
sathishreddy
Level 1

06-03-2020

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

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,429 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,429 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

09-03-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.

Answers (2)

Answers (2)

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

06-03-2020

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

21-05-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-o...

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-resource-resolution-...

 

 Let us know if you have anymore questions

 

Thanks

Veena