Is it possible to create a dotnetnuke (v5) package that contains multiple modules?
I mean: there is a “moduleDefinitions” element on the manifest that looks like supporting more than one module, but adding another child to it doesn’t sort any effect.
The dnn manifest looks like:
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="MyModuleName" type="Module" version="01.00.00">
<friendlyName>MyModuleName</friendlyName>
<components>
<component type="Module">
<desktopModule>
<moduleName>MyModuleName</moduleName>
<foldername>MyModuleName</foldername>
<supportedFeatures />
<businessControllerClass />
<moduleDefinitions>
<moduleDefinition>...</moduleDefinition>
<!-- this one is ignored -->
<moduleDefinition>...</moduleDefinition>
<moduleDefinitions>
Anyway I need to package two or more modules on the same package. Is it possible?
Multiple module definition elements should work just fine. If there are multiple definitions within a module, when you add the module to the page, an instance of each definition will be added. There will still only be one entry in the extensions list.
If you want two independent modules, you will need two
<package>elements (it won’t work to have two<component type="Module">elements in a<package>).