How to add client context in AEM sidekick? | Community
Skip to main content
Level 2
November 21, 2016
Solved

How to add client context in AEM sidekick?

  • November 21, 2016
  • 1 reply
  • 1113 views

    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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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-manager.topic.1.html/forum__ejsv-hello_when_clien.html

~kautuk

1 reply

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
November 22, 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-manager.topic.1.html/forum__ejsv-hello_when_clien.html

~kautuk

Kautuk Sahni