Skip to main content
Level 2
February 11, 2023
Solved

I have simple component with 3 path fields dialog and sling model to fetch this fields values but i want to use this sling model in my basepage component head.html file and unable to render values in head.html, please anyone can suggest ho to do it

No text available
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Ritesh_Mittal
Ritesh_MittalAccepted solution
Adobe Champion and Community Advisor
February 11, 2023

Hi @ashar02 ,

 

If you have already written Sling Model but the property values are not being fetched I would advice to debug the sling model in the IDE (eclipse, etc). You need to run AEM server in debug mode for that.

 

Also, check the Sling Model status-

 

Felix console > Status > Sling Models

 

/system/console/status-slingmodels

 

Also, check below video for Sling Model usage explanation-

https://youtu.be/Wq93eTSdoC8

 

Thanks,

Ritesh Mittal

1 reply

Ritesh_Mittal
Adobe Champion and Community Advisor
Ritesh_MittalAdobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
February 11, 2023

Hi @ashar02 ,

 

If you have already written Sling Model but the property values are not being fetched I would advice to debug the sling model in the IDE (eclipse, etc). You need to run AEM server in debug mode for that.

 

Also, check the Sling Model status-

 

Felix console > Status > Sling Models

 

/system/console/status-slingmodels

 

Also, check below video for Sling Model usage explanation-

https://youtu.be/Wq93eTSdoC8

 

Thanks,

Ritesh Mittal

Translate