Expand my Community achievements bar.

SOLVED

How to add client context in AEM sidekick?

Avatar

Level 2

    I have included  " <sly data-sly-include="${'clientcontext' @ resourceType='cq/personalization/components/clientcontext'}" data-sly-unwrap/>" in my page.html  to get client context in AEM sidekick for the page which I created using my own blank template. Eventhough adding clientcontext path in page.html , I am not able to get it on my page. Suggest me a solution for it. Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi

Try this:  
"<div data-sly-resource="${ @path='clientcontext-new', resourceType='/libs/cq/personalization/components/clientcontext'}" data-sly-unwrap></div> "

Reference post :- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

~kautuk



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

Hi

Try this:  
"<div data-sly-resource="${ @path='clientcontext-new', resourceType='/libs/cq/personalization/components/clientcontext'}" data-sly-unwrap></div> "

Reference post :- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

~kautuk



Kautuk Sahni