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
Level 2
Feb 11, 2023 7:33 AM UTC
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
New Participant
Feb 11, 2023 8:04 AM UTC

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
Feb 11, 2023 8:04 AM UTC

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