ClientContext not getting loaded for the logged in User | Community
Skip to main content
Tuhin_Ghosh
Level 8
July 13, 2016
Solved

ClientContext not getting loaded for the logged in User

  • July 13, 2016
  • 1 reply
  • 680 views

Hi All,

I am trying to implement personalization. In order to do so I need client context to work for me. When I am using my campaign in geometrixx-media page it is working as expected but when I am trying to drag and drop the OOTB teaser component and point it to the same component it is not working as expected. I figured that in order to get it working we need client context to be present in the application. So I included the below snipped.

<div data-sly-resource="${'clientcontext' @ resourceType='cq/personalization/components/clientcontext'}" data-sly-unwrap/>

Now I can see the with alt+ctrl+c the client context component is there but the data for the logged in profile is not getting loaded in the client context.

I have not ventured this area of AEM before so this is something new for me, and I am sure I am doing some silly mistake. Could anyone please help me out on the same.

I am using AEM 6.1

Thanks

Tuhin

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 Tuhin_Ghosh

Solved. I was using my custom login module to login to application, so it was not loading any client context data.

Figured out that after using CQ's login component it is setting all the data in client context and it is working as expected.

Thanks,

Tuhin

1 reply

Tuhin_Ghosh
Tuhin_GhoshAuthorAccepted solution
Level 8
July 15, 2016

Solved. I was using my custom login module to login to application, so it was not loading any client context data.

Figured out that after using CQ's login component it is setting all the data in client context and it is working as expected.

Thanks,

Tuhin