March 15, 2020
Estimated Post Reading Time ~

Overriding jQuery version in cq

Sometimes you need to override the default version of Jquery present in cq.

Steps to upgrade Jquery Version :
1/ Go to /etc/clientlibs/granite/jquery/source
CQ itself uses jquery , however it uses $CQ instead of $ as in standard jquery.
Overriding ofjquery is not suggested if you are intended to use CQ in portlet mode.

For this, you can simply follow below steps to override the jQuery version in CQ.


2/ Create a folder according to the jquery version. e.g. "2.0.1"
3/ Download and copy the source code of jquery to that folder.
4/ Open /etc/clientlibs/granite/jquery/js.txt
5/ In that file, replace the old jquery path to the new one

But overriding jquery version is not known to conflict as such, but still, to avoid any issue proper testing must be done in a development environment.



By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.