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

for personalization in 6.5 we still need $CQ lib?

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.
Asutosh_Jena_
Asutosh_Jena_Accepted solution
New Participant
Apr 29, 2021 4:35 PM UTC

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!

2 replies

Asutosh_Jena_
Asutosh_Jena_Accepted solution
New Participant
Apr 29, 2021 4:35 PM UTC

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!

Translate
broman__pl
Level 3
Apr 30, 2021 3:27 PM UTC
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?
Translate