The Widget component defines a the Widget for DotNetNuke.
The Widget Component inherits from the
File Component and uses a similar syntax.
Elements and attributes
<component type="Widget">
<widgetFiles>
<basePath></basePath>
<widgetFile>
<path/>
<name/>
</widgetFile>
</widgetFiles>
</component>
- basePath: the folder where all the files will be copied, relative to the folder Resources\Widgets\User where all user widgets are installed
- widgetFile: defines all files that are part of this widget. The path is relative to the previously especied basePath.
Sample
<component type="Widget">
<widgetFiles>
<basePath>YourCompany</basePath>
<widgetFile>
<name>YourCompany.Widgets.SampleWidget.js</name>
</widgetFile>
<widgetFile>
<name>license.txt</name>
</widgetFile>
<widgetFile>
<name>releasenotes.txt</name>
</widgetFile>
</widgetFiles>
</component>
References