I have a module with multiple module controls ie more than one form and view. This is how the xml looks. However when this is deployed, only the first control is shown on the page.
1) Is it possible in DNN 7.0 to create one package and one module with multiple module control? These forms are all part of the same solution so it does not make sense to create them as separate packages. This approach worked in previous instances of DNN.
2) If it is possible, what should be the change in the XML structure?
We are aware of the workaround where we manually go into the host-settings and add the controls which does fix the issue. However this doesn't allow us to create an Installer and automate the install. So Just wanted to find out if there is a better way of creating a solution when the requirement is that we need multiple forms in each module?
Here is the sample XML
<packages>
<package name="MyPackage" type="Module" version="2015.5.2088">
<friendlyName>MyPackage</friendlyName>
<description>Description of My Package</description>
<components>
<component type="Module">
<desktopModule>
<moduleName>MyModule</moduleName>
<foldername>MyFolderName</foldername>
<businessControllerClass>MyModule.Modules.MyModule.FeatureController</businessControllerClass>
<supportedFeatures />
<moduleDefinitions>
<moduleDefinition>
<friendlyName>Form 1</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey></controlKey>
<controlSrc>DesktopModules/MyModule/Form1.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>Edit Form</controlTitle>
<controlType>View</controlType>
<iconFile />
<helpUrl />
<viewOrder>0</viewOrder>
</moduleControl>
</moduleControls>
</moduleDefinition>
<moduleDefinition>
<friendlyName>Form 2</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey></controlKey>
<controlSrc>DesktopModules/MyModule/Form2.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>Form 2</controlTitle>
<controlType>View</controlType>
<iconFile />
<helpUrl />
<viewOrder>1</viewOrder>
<supportsPopUps>True</supportsPopUps>
</moduleControl>
</moduleControls>
</moduleDefinition>
<moduleDefinition>
<friendlyName>View</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey></controlKey>
<controlSrc>DesktopModules/MyModule/ViewForm.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlType>View</controlType>
<iconFile />
<helpUrl />
<viewOrder>3</viewOrder>
<supportsPopUps>True</supportsPopUps>
</moduleControl>
</moduleControls>
</moduleDefinition>
<moduleDefinition>
<friendlyName>MyModuleSettings</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey></controlKey>
<controlSrc>DesktopModules/MyModule/Settings.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>MyModule Settings</controlTitle>
<controlType>Edit</controlType>
<iconFile />
<helpUrl />
<viewOrder>5</viewOrder>
</moduleControl>
</moduleControls>
</moduleDefinition>
</moduleDefinitions>
</desktopModule>
</desktopmodule>