Howto load yui2 scripts in design.ini with ezjscore

Author Message

Georg Franz

Saturday 21 November 2009 9:21:07 am

Hi,

I am trying to load several yui scripts, but whats the correct syntax in the design.ini?

I've tried

JavaScriptList[]=ezjsc::yui2::dom

But that isn't working.

Best wishes,
Georg.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Robin Muilwijk

Saturday 21 November 2009 12:37:23 pm

Hi Georg,

I don't have a direct answer to your question, but you might want to keep an eye on this topic: http://share.ez.no/forums/developer/ezjscore-yui2-yui3-tutorials

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Ɓukasz Serwatka

Sunday 22 November 2009 2:01:30 am

Hi,

Take a look on the following example: http://projects.ez.no/ezjscore/forum/general/yui2_support#msg20418

That is a way how do you load yui2 modules. YUILoader can load files from CDN or your server FS.

Hope it helps?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Georg Franz

Sunday 22 November 2009 6:08:09 am

Hi folks,

thanks for the info!

Well, I thought there is an easier way to include the right yui libs in the admin interface.

My problem is, that I can't list the yui scripts in design.ini because the js files are not in a "javascript/" directory but in a "lib/" directory. The same problem exists with css files from yui.

So the way to load yui scripts in the admin interface is:
Write an own javascript with the yui loader and name this file in design.ini?

(I don't want to have a template override for an admin file).

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Gaetano Giunta

Monday 23 November 2009 1:26:44 am

Well, the way jscore works is in fact by way of overriding some templates that are part of the standard design pagelayout. I do not think doing the same in the admin design is a bad thing... (my 2c)

Principal Consultant International Business
Member of the Community Project Board

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 00:58:31
Script start
Timing: Jan 18 2025 00:58:31
Module start 'layout'
Timing: Jan 18 2025 00:58:31
Module start 'content'
Timing: Jan 18 2025 00:58:32
Module end 'content'
Timing: Jan 18 2025 00:58:32
Script end

Main resources:

Total runtime1.1449 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 590.3281152.6563
Module start 'layout' 0.00500.0024 742.984439.5078
Module start 'content' 0.00741.1360 782.4922657.4375
Module end 'content' 1.14330.0015 1,439.929716.1094
Script end 1.1449  1,456.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2741160.0002
Check MTime0.00130.1114160.0001
Mysql Total
Database connection0.00070.063210.0007
Mysqli_queries1.073593.7582670.0160
Looping result0.00080.0677650.0000
Template Total1.108896.820.5544
Template load0.00210.185720.0011
Template processing1.106796.660120.5533
Template load and register function0.00010.009810.0001
states
state_id_array0.00070.061610.0007
state_identifier_array0.00160.143020.0008
Override
Cache load0.00190.1659340.0001
Sytem overhead
Fetch class attribute can translate value0.00070.061440.0002
Fetch class attribute name0.00110.098990.0001
XML
Image XML parsing0.00360.314040.0009
class_abstraction
Instantiating content class attribute0.00000.0019100.0000
General
dbfile0.00280.2431380.0001
String conversion0.00000.000740.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs