Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

for personalization in 6.5 we still need $CQ lib?

Avatar

Level 3

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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!

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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!

Avatar

Level 3
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?