Where do need to put jquery files in ez.

Author Message

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 :)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:11:32
Script start
Timing: Jan 18 2025 05:11:32
Module start 'layout'
Timing: Jan 18 2025 05:11:32
Module start 'content'
Timing: Jan 18 2025 05:11:32
Module end 'content'
Timing: Jan 18 2025 05:11:32
Script end

Main resources:

Total runtime0.5915 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.0313152.6406
Module start 'layout' 0.00590.0024 740.671939.4766
Module start 'content' 0.00830.5817 780.1484507.4531
Module end 'content' 0.59000.0015 1,287.60168.1250
Script end 0.5915  1,295.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5624160.0002
Check MTime0.00120.2101160.0001
Mysql Total
Database connection0.00070.122410.0007
Mysqli_queries0.543691.9051540.0101
Looping result0.00050.0837520.0000
Template Total0.564395.420.2821
Template load0.00210.348120.0010
Template processing0.562295.041820.2811
Template load and register function0.00010.017610.0001
states
state_id_array0.00100.165810.0010
state_identifier_array0.00090.148120.0004
Override
Cache load0.00170.2956230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.095520.0003
Fetch class attribute name0.00150.247540.0004
XML
Image XML parsing0.00100.169720.0005
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00130.2264230.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs