Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN 8 CTP7: A SPA module added to a page, but it is not rendered (displayed)?DNN 8 CTP7: A SPA module added to a page, but it is not rendered (displayed)?
Previous
 
Next
New Post
12/1/2015 6:14 AM
 
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: 
<!-- Start_Module_{ModuleId} --><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

 

 
New Post
12/7/2015 4:54 AM
 

My module appeared after I was modifying entries in DB and manifest. I don' t know what exactly fixed the problem.

 
New Post
12/7/2015 1:14 PM
 
It sounds like you might be the expert here. Any chance you could maybe diff the manifest with it's non-working state? I appreciate that's a bit harder for the DB, but seriously, you may the first out there. Or at least the first prepared to help anyone else. :-)

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
12/7/2015 1:15 PM
 
At least congrats on fixing your problem.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
12/8/2015 9:48 AM
 
So, I would start from creating a base SPA module based on the template located in a standard (non-MVC) folder under desktopmodules.  You could even start with a standard DNN module and just change the DB entry for the base view (see the recent Hangout on SPA module development ) to use an HTML view instead.  Take things in simple steps making sure everything works at every step.  This is how I developed the SPA and the MVC templates.

Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN 8 CTP7: A SPA module added to a page, but it is not rendered (displayed)?DNN 8 CTP7: A SPA module added to a page, but it is not rendered (displayed)?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out