Manifest: ResourceFile Component

Return to previous page

  • 4/7/2015
  • 2071 Views

Comments

2071 Views

Manifest: ResourceFile Component

Last updated 3 years ago

Comments

Common

(Enter the content of this article below)

Advanced

 
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


Contents
No sections defined
Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out