The ResourceFile Component is used to install a set of files without having to explicitely declare the name and path of all the files. It can greatly simplify the manifest for modules that contain a lot of files.
The files are packaged as a .zip file with relative paths to where they will be copied when expanded by the DotNetNuke package installer.
The ResourceFile Component inherits from the
File Component and uses a similar syntax.
Elements and attributes
<component type="ResourceFile">
<resourceFiles>
<basePath> </basePath>
<resourceFile>
<name> </name>
</resourceFile>
</resourceFiles>
</component>
- basePath: relative path (from the root of the site) where the .zip file will be expanded and files copied
- resourceFile: for each .zip file to be expanded include a node
- name: the name of the .zip file
Sample
<component type="ResourceFile">
<resourceFiles>
<basePath>DesktopModules\MyModule</basePath>
<resourceFile>
<name>resources.zip</name>
</resourceFile>
</resourceFiles>
</component>
References