After upgrading to Kentico 8.1, my site's jQuery modules seemingly disappeared. Kentico is unilaterally injecting its own jQuery module, overwriting my own reference. How do I prevent this?
Asked
Active
Viewed 307 times
2 Answers
3
This topic is covered in the following article: Using a custom jQuery when developing pages in Kentico.
Kentico currently creates a jQuery alias. What you need to do is open the jquery-core.js file and locate the line stating:
var $cmsj = jQuery.noConflict();
Comment this line and then uncomment the line:
var $cmsj = jQuery.noConflict(true);

Martin Danko
- 1
- 6
-
Link-only answers are deprecated. – Phantômaxx Jan 06 '15 at 11:25
0
Kentico's own site documents the problem here. The solution is to customize Kentico's built-in jquery-core.js file, replacing the line var $cmsj = jQuery.noConflict();
with the line var $cmsj = jQuery.noConflict(true);
. And pray that subsequent hotfixes/upgrades don't revert this change.

Bryan
- 1,431
- 1
- 17
- 22