Why do ez not support jquery plugin

Author Message

Romeo Antony

Thursday 24 June 2010 1:46:51 am

Any idea why ez not supporting ez

Gaetano Giunta

Thursday 24 June 2010 2:01:37 am

Please explain?

The eZJSCore extension does support jquery...

Principal Consultant International Business
Member of the Community Project Board

Romeo Antony

Thursday 24 June 2010 5:01:10 am

I will explain Gaetano Giunta, I am using ezflow package and eZJSCore is activated in site ini of setting/override

as

[ExtensionSettings]
ActiveExtensions[]
ActiveExtensions[]=ezmultiupload
ActiveExtensions[]=ezjscore
ActiveExtensions[]=ezstarrating
ActiveExtensions[]=ezgmaplocation
ActiveExtensions[]=ezflow
ActiveExtensions[]=ezwt
ActiveExtensions[]=ezwebin
ActiveExtensions[]=ezoe
ActiveExtensions[]=ezodf

and i have a jquery file ( jquery.tools.min.js ) i put t in ezflow extension/ custom design /javascript directory

also declared the jquery.tools.min.js in design.ini in site user access.

but it is not working. any idea?

I am looking to take some jquery supporting scripts for image gallery . why it is like this\?

Gaetano Giunta

Thursday 24 June 2010 8:05:56 am

If you declared your new js file in design.ini, it should be loading. But that is easy to check: look at the html source of your rendered page and check if it is there, in the html header section.

If it is: then your problems come from js / jquery. This is probably not the best forum to help you.

If it is not: then you have most likely changed your pagelayout template and are not loading the javascript files that are declared in design.ini. You can either change your pagelayout template so that it does that, or try to load instead jquery.tools.min.js via the ezjscore template functions

Principal Consultant International Business
Member of the Community Project Board

Gaetano Giunta

Thursday 24 June 2010 8:06:44 am

ps: you can also check if your design.ini file is really set up correctly by looking at it via the admin interface in the setup/ini settings page

Principal Consultant International Business
Member of the Community Project Board

Romeo Antony

Friday 25 June 2010 4:44:15 pm

Now I am reaching the point

Can you plz check this code in ezjscore.ini and give me suggestion

since I am the first time dealing with ezjscore.

I need 3 jquery files for pgalayout.tpl

1. jquery-1.3.2.min.js

2. jquery.scrollTo-1.4.0-min.js

3. jquery.smoothDivScroll-0.9-min.js

In ezjscore.ini I set it as

LoadFromCDN=enabled

#PreferredLibrary=yui3
PreferredLibrary=jquery

ExternalScripts[jquery]=http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js
ExternalScripts[jquery]=http://flesler-plugins.googlecode.com/files/jquery.scrollTo-1.4.0-min.js

Also i didn't get the CDN link for 3rd jquery file jquery.smoothDivScroll-0.9-min.js

So I downloaded this file jquery.smoothDivScroll-0.9-min.js and put it in \extension\ezjscore\design\standard\javascript

And then I load this LocalScripts[jquery]=jquery.scrollTo-1.4.0-min.js

But something wrong with scrolling.

Do I need to declare this js files somewhere else like design.ini.append.php of user site access

Or in somewhere.

Any idea will be helpful

Everything is fine.But I think I need to declare it somewhere else. Any suggestions will be helpfull.

I have checked the whole code in wwwroot dir everything is ok. Any help

Romeo Antony

Friday 25 June 2010 4:51:36 pm

And in template file I have this code too {ezscript_require( array( 'ezjsc::jquery' ) )}

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:12:32
Script start
Timing: Jan 18 2025 05:12:32
Module start 'layout'
Timing: Jan 18 2025 05:12:32
Module start 'content'
Timing: Jan 18 2025 05:12:34
Module end 'content'
Timing: Jan 18 2025 05:12:34
Script end

Main resources:

Total runtime1.5380 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9375152.6250
Module start 'layout' 0.00520.0030 740.562539.4453
Module start 'content' 0.00821.5284 780.0078594.2813
Module end 'content' 1.53660.0014 1,374.289120.1563
Script end 1.5380  1,394.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2169160.0002
Check MTime0.00130.0842160.0001
Mysql Total
Database connection0.00060.041710.0006
Mysqli_queries1.459794.9068690.0212
Looping result0.00060.0404670.0000
Template Total1.506097.920.7530
Template load0.00220.144420.0011
Template processing1.503897.773620.7519
Template load and register function0.00010.007210.0001
states
state_id_array0.00100.064910.0010
state_identifier_array0.00090.056420.0004
Override
Cache load0.00200.1319630.0000
Sytem overhead
Fetch class attribute can translate value0.00080.051620.0004
Fetch class attribute name0.00240.156190.0003
XML
Image XML parsing0.00100.064520.0005
class_abstraction
Instantiating content class attribute0.00000.0020140.0000
General
dbfile0.00100.0622220.0000
String conversion0.00000.000840.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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs