If I understand well we can now mix Webforms, MVC and SPA Control types in a module.
I want to have at least a few MVC and few SPA controls in my module. I am using Christoc's SPA template to build a SpaModule with these controls (I build a VSIX myself from the Git source):
This is what I have in my module manifest
<component type="Module">
<desktopModule>
<moduleName>MyComp.SpaModule</moduleName>
<foldername>DesktopModules/MVC/MyComp/SpaModule</foldername>
<businessControllerClass>MyComp.Modules.SpaModule.Components.FeatureController</businessControllerClass>
<moduleDefinitions>
<moduleDefinition>
<moduleControls>
<moduleControl>
<controlSrc> elements:
DesktopModules/MVC/MyComp/SpaModule/View.html
DesktopModules/MVC/MyComp/SpaModule/Edit.html
DesktopModules/MVC/MyComp/SpaModule/Settings.html
I plan to add some MVC controls as well like:
MyComp.Modules.SpaModule.Controllers/List/Edit.mvc
The module builds and installs OK. When I add this module to my page nothing appears on the page although all the necessary
entries in DB are present: Packages, ModuleDefinisions, ModuleControls, Modules, TabModules.
When I look in the source HTML I don't see usual container of the module:
<div id="dnn_ctr{ModuleID}_ModuleContent"
So why the DNN page composition engine won't pickup my SPA module. At the moment I don't have any MVC controls (only 3 SPA controls).
Would that be a reason (as it expects at least one MVC based control if I put my module under DesktopModules/MVC/folder)
I also noticed that my SpaModule is not in use on Extensions page. Again why?
Can some point me in the right direction. In the meantime I will try to debug DNN to see why my SPA module instance on a test tab is not included in rendering.
I guess it has to do with SPA pages pre-processing to expand tokens and include them in the page. I am using Christoc's View, Edit and Settigs html pages that come from the template.
Thanks,
Rad