Forums / Install & configuration / Howto load yui2 scripts in design.ini with ezjscore

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

eZ debug

Timing: Jan 17 2025 22:58:00
Script start
Timing: Jan 17 2025 22:58:00
Module start 'content'
Timing: Jan 17 2025 22:58:02
Module end 'content'
Timing: Jan 17 2025 22:58:02
Script end

Main resources:

Total runtime2.0533 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 587.9609180.8047
Module start 'content' 0.00901.7656 768.7656662.5469
Module end 'content' 1.77450.2787 1,431.3125337.0313
Script end 2.0532  1,768.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.2193210.0002
Check MTime0.00160.0789210.0001
Mysql Total
Database connection0.00080.038410.0008
Mysqli_queries1.957695.34082040.0096
Looping result0.00260.12862020.0000
Template Total1.989096.920.9945
Template load0.00250.122720.0013
Template processing1.986496.743720.9932
Template load and register function0.00010.005310.0001
states
state_id_array0.00270.129610.0027
state_identifier_array0.00540.263820.0027
Override
Cache load0.00220.1054340.0001
Sytem overhead
Fetch class attribute can translate value0.00320.155650.0006
Fetch class attribute name0.00160.078490.0002
XML
Image XML parsing0.00400.193150.0008
class_abstraction
Instantiating content class attribute0.00000.0009100.0000
General
dbfile0.00790.3859490.0002
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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