I use jquery v1.8 for my template and I am on Mura version 6.1, I get the above error when I try to load any page, it occurs at this line $.extend(window,mura);
Obvious thing is $
is not available for it to use, but I don't know what should I do to prevent that since this code is something that gets added in a script tag dynamically by mura in every page and is not some library file that I can adjust by loading after jQuery.
Detailed code is as follows which is in includes/display_objects/html_head/global.cfm
var mura={
loginURL:"#variables.loginURL#",
siteid:"#variables.$.event('siteID')#",
siteID:"#variables.$.event('siteID')#",
context:"#variables.$.globalConfig('context')#",
jslib:"#variables.$.getJsLib()#",
assetpath:"#variables.$.siteConfig('assetPath')#",
themepath:"#variables.$.siteConfig('themeAssetPath')#",
htmlEditorType:"#variables.$.globalConfig('htmlEditorType')#",
rb:"#lcase(listFirst(variables.$.siteConfig('JavaLocale'),"_"))#",
#variables.$.siteConfig('JSDateKeyObjInc')#
}
$.extend(window,mura);
I do not wish to do any changes like replace $
with jQuery since the mura core files if customized and when upgraded won't keep the changes. I tried replacing $
with jQuery
and it works but is there a way I can do something to avoid jQuery conflicts by customizing my template files or custom js file so I won't have to worry about what will happen if I upgrade Mura and those core files get overwrite.