Foren

Liferay Loading YUI Gallery modules from yahooapis.com

Amij Pate, geändert vor 11 Jahren.

Liferay Loading YUI Gallery modules from yahooapis.com

New Member Beitrag: 1 Beitrittsdatum: 15.02.11 Neueste Beiträge
YUI maintains group wise modules like "gallery" and "yui2", each group has its own configuration like pattern,base URL and combine URL which are used to load Modules.

When I try to load "gallery-slideshow-base" , it passed pattern test of "gallery" group and load "gallery-slideshow-base" module from yahooapis.com as per gallery configuration.

As per the documentation of YUI , we can override or provide module configuration in YUI_config or YUI(<config>) as shown below.
Though I mentioned in config that "gallery-slideshow-base" module should load from Theme ("fullpath" in config), Liferay/YUI loads it from yahooapis.com

Is it the proper way to override/provide module config or is there any other best way in Liferay?


AUI({
modules:{
                          'gallery-slideshow-base': {
                                           fullpath:"/test-theme/js/gallery/gallery-slideshow-base.js",
                                           requires:  ['node', 'event', 'widget']
                          }
               }
}).ready("gallery-slideshow-base",function(A){
....
} ) ;