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 | Community
Skip to main content
New Participant
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

  • February 11, 2023
  • 1 reply
  • 816 views
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.
Best answer by Ritesh_Mittal

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
Ritesh_MittalAccepted solution
New Participant
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