AI OnAI Off
Hi Maris!
Modules are currently not automatically started when you have an editor inside the module that is loaded. In EPiServer 7.5, you can define that the module should be started after another module has been started by defining a module dependency with the runAfter attribute. You can read about it here: http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Framework/75/Configuration/Configuring-moduleconfig/
So you could add the following configuration under the clientModule section in your module config file:
<moduleDependencies>
<add dependency="CMS" type="RunAfter" />
</moduleDependencies>
I am building custom widget for tag selection in CMS edit mode and would like to use custom styles and scripts, but can't get them loaded on the page.
Here is what I have.
I have this file structure:
Then I have EditorDescriptor to load my dojo Widget for tag editing:
TagsSelection.js:
And module.config:
On the page type which uses tags selection I defined property with UIHint:
And I am rendering it in the view:
When I open edit mode and start editing the field I see in Chrome Developer Tools Network tab that TagsSelection.js is loaded, but there are no resources which are defined in modules.config.
I found this thread in forum: http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=65949
It describes that defining resources in modules.config is enought (at least as I understand).
Same also on Stack Overflow and other resources:
http://stackoverflow.com/questions/16853759/episerver-7-load-css-in-custom-dojo-modules
What I am missing?