Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

for personalization in 6.5 we still need $CQ lib?

broman__pl
Level 2
Level 2

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
asutosh_jena
Correct answer by
Community Advisor
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
asutosh_jena
Correct answer by
Community Advisor
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

broman__pl
Level 2
Level 2
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?