Sunday 20 July 2014

Overriding jQuery version in cq

Namastey !!

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 to override the jQuery version in CQ.


2/ Create a folder according to jquery version. e.g. "2.0.1"
3/ Downlaod 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 development environment.

Dhanywaad,


No comments:

Post a Comment

Basic Sling Model Exporter

/* Open a page which is having component /apps/project/components/page/page /content/project/en/jcr:content.model.json Don't miss...