Expand my Community achievements bar.

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

Avatar

Level 3
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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