Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Templates do not show up in AEM6.0

Avatar

Level 5

I have created a simple template which refers to a html page.

I have parsys included in the html page.page is quite simple

<!DOCTYPE html>

<div data-sly-include="head.html"></div>
hiiiii

<div data-sly-resource ="${@path='par', resourceType='wcm/foundation/components/parsys'}"></div>

However when opened in a browser, it gives a blank page and logs say 

"01.04.2015 15:38:40.446 *ERROR* [0:0:0:0:0:0:0:1 [1427882920251] GET /content/sitemap_trials.html HTTP/1.1] com.adobe.cq.sightly.WCMScriptHelper Failed to include script head.html
org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: No use provider could resolve identifier: libs.granite.sightly.templates.ClientLibUseObject

"

Once encountered this keeps happening for all my templates even if I restart the instance.

 

Could anyone help?

1 Accepted Solution

Avatar

Correct answer by
Level 10

sling:resourceSuperType should be 'wcm/foundation/components/page' instead of '/foundation/components/page'

Refer them for more Sightly topics/help

http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

View solution in original post

5 Replies

Avatar

Level 10

what is your sling:resourceSuperType ?

Avatar

Correct answer by
Level 10

sling:resourceSuperType should be 'wcm/foundation/components/page' instead of '/foundation/components/page'

Refer them for more Sightly topics/help

http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

Avatar

Level 5

sling:resourceSuperType is wcm/foundation/components/page

Avatar

Employee

can you copy the head.js ,stats.js and initwcm.js to your page component and see?

Avatar

Level 3

Hi,

I am getting same issue, when i have opened my page it is showing empty screen. Can you please help me how to resolve this issue.

I gave sling:resourceSuperType is wcm/foundation/components/page

 

Thanks,

Balu.