AnsweredAssumed Answered

custom a dashlet with a  external JS Code

Question asked by alibel on Oct 27, 2015
Latest reply on Oct 29, 2015 by alibel
Hello,

I'am a new user in Alfresco developpement.

I want to add a new dashlet in my share dashborad with an external JS code. My JS code contains ressources like css files or js files.
I did all the tutorials for add a Dashlet in dashboard but with my JS code and my ressources I have an error in dojo.js "multidefine".

Can you define me if I have to set some thing in alfresco or share, or something else?

Thanks.

error :

Error: multipleDefine
Trace de la pile :
_f@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:430
_f7@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:16091
_7d/<@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:16665
_9@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:322
_7d@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:16639
_32/_f1@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:14695
_32@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:15008
_e8@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:13856
_32@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:14659
_9@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:322
_79/<@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:6748
_37@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:13094
_79@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:6733
_16@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:7399
req@http://127.0.0.1:8080/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:15:549
@http://127.0.0.1:8080/share/page/user/admin/dashboard:235:1

Outcomes