The Container component defines a Container for DotNetNuke.
The Container Component inherits from the
Skin Component and uses a similar sintax.
Elements and attributes
<component type="Container">
<containerFiles>
<basePath></basePath>
<containerName></ContainerName>
<containerFile>
<path></path>
<name></name>
</containerFile>
</containerFiles>
</component>
- basePath: the folder where all the files will be copied, relative to the root of the installation
- containerName: the name of the Container
- containerFile: defines all files that are part of this Container. The path is relative to the previously especied basePath.
Since Container files need to be parsed at installation time to replace relative folder names, files of type ascx, html, html, css must be declared as ContainerFiles in the component in order for the installer to be able to parse them.
All other support files (images, js, ...) can be packaged using the ResourceFile component to simplify the complexity of the Container package.
Sample
The following sample shows part of the MinimalExtropy Container distributed with the DNN Core package:
<component type="Container">
<containerFiles>
<containerName>MinimalExtropy</containerName>
<basePath>Portals\_default\Containers\MinimalExtropy</basePath>
<containerFile>
<name>license.txt</name>
</containerFile>
<containerFile>
<name>releaseNotes.txt</name>
</containerFile>
...
</containerFiles>
</component>
References