How to add client context in AEM sidekick?

Avatar

Avatar

Keerthana_M

Avatar

Keerthana_M

Keerthana_M

21-11-2016

    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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

21-11-2016

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

Answers (0)