Your answer seems to be what I need. But I am confused with how 'servlet://' in dojo.registerModulePath("cocoon.ajax", "servlet://resource/external/ajax/js") in manifest.js is translated?
Rice Yeh napisał(a):
> I have a bock which provides some widgets based on dojo. Now, my
> problem is how to do dojo.registerModulePath without directly
> modifying forms-field-styling.xsl?
I do not understand your question. Why do you need to modify
forms-field-styling.xsl? To register your widgets make manifest.js file
for your own block and reference it from HTML file you produce. Here you
have example manifest: