Forums / Install & configuration / Howto load yui2 scripts in design.ini with ezjscore
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
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
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).
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