for personalization in 6.5 we still need $CQ lib? | Community
Skip to main content
broman__pl
Level 3
April 29, 2021
Solved

for personalization in 6.5 we still need $CQ lib?

  • April 29, 2021
  • 1 reply
  • 793 views

I've play with personalization following all documentations and after all steps get this error

Uncaught ReferenceError: $CQ is not defined

In AEM 6.5(.5) we still need $CQ functions?

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 Asutosh_Jena_

Hi @broman__pl 

 

Please add the below line on your page component's headlibs.html and try.

<sly data-sly-include="/libs/wcm/core/components/init/init.jsp" data-sly-unwrap/>

 

Thanks!

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
April 29, 2021

Hi @broman__pl 

 

Please add the below line on your page component's headlibs.html and try.

<sly data-sly-include="/libs/wcm/core/components/init/init.jsp" data-sly-unwrap/>

 

Thanks!

broman__pl
Level 3
April 30, 2021
I've tried to ad this line in my html header file but it just result as empty line, any idea why? 🙂 And side note is that do we really need to include all those libs to show default contet in targeted componenent?