Forums / Developer / Where do need to put jquery files in ez.
Romeo Antony
Friday 25 June 2010 11:06:20 pm
I have 3 jquery files jquery-1.3.2.min.js
jquery.scrollTo-1.4.0-min.js
jquery.smoothDivScroll-0.9-min.js
Where do I need to put it it and declare it
Where do I put it and declare it.
Which locations where I need to declare it?
Design.ini of site access?
In template file what changes should i make ? Any help?
Jérôme Vieilledent
Sunday 27 June 2010 6:10:17 am
Hello
jQuery is included in eZJSCore extension (bundled in eZ Publish by default now). You can declare it in your siteaccess's design.ini override :
[JavaScriptSettings] FrontendJavaScriptList[]=ezjsc::jquery
You can also explicitly declare your version of jQuery :
[JavaScriptSettings] FrontendJavaScriptList[]=jquery/jquery-1.4.2.min.js
Note : if you use eZ Publish prior to 4.3, replace FrontendJavaScriptList by JavaScriptList ;-)
About your other JS files, just put them below your jQuery declaration :)