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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN module development using MVC?DNN module development using MVC?
Previous
 
Next
New Post
3/30/2010 8:53 PM
 

I am aware of the pet project at dnnlabs.codeplex.com and Charles Nurse's blog entry.I was wondering if it's possibe to create full blown DNN modules with MVC down the road or are the modules going to be severely restricted and will be considered 'toy" modules? Say I want to create a simple feedback 9form with a few text boxes and a button) module, is this possible with DNN & MVC?

I am interested in learning MVC and I am considering lumping the learning process with module development.

 
New Post
3/30/2010 9:04 PM
 

Hi Tony ~

I believe that the reason this project is in "labs" is as a proof of concept.  That means that its not something that is planned for implementation or support in the product at this point.  This is a way for us to create things that might be interesting, but we find out based on community interest if something is worth pursuing or not.  I will point Charles at this post and let him answer you more specifically about MVC.  But glad that you have interest and curious to see what other interest there may be.

Scott


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
3/31/2010 6:47 AM
 

Hi,

Another interested person here! I would love to see a full working example of a MVC DNN module. I think the pet project isn't ready for that yet...

Marcel


Regards,
Marcel v.d. Bogaard

www.b-smartwebsolutions.nl
 
New Post
3/31/2010 7:42 AM
 
You might also want to look into using MVP. Support for that is being added to the core of DNN. see http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2534/Test-Driven-example-module-nearly-refactored-to-Web-Forms-MVP.aspx and http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2522/Creating-Testable-Modules-ndash-Redux-ndash-Now-Baked-into-the-Core.aspx
 
New Post
3/31/2010 11:31 AM
 

As Robert suggested, if you want to gain all the benefits from building fully testable modules today, then the new MVP Framework that is included in DNN 5.3 is the right way to go.  This is a full featured implementation based on the WebFormsMvp codeplex project.

In addition over time, both the underlying WebFormsMvp project and our own implementation will likely evolve to provide mor features.

For example, in the next feature release we will be adding some extra helper methods that can be used in the presenter class:

  1. LocalizeString - the LocalResourceFile is automatically "wired" up in the base classes and all you need to do is call LocalizeString(key) to get localized strings in your presenter
  2. ShowMessage - there a couple of overloads which allow developers to add skin messages - again this is wired up in the base classes so all developers have to do in the presenter is call this method
  3. ProcessModuleLoadException - this method provides the behaviour that can today be used in PortalModuleBase in the Presenter class.

In addition, Tatham and Damian the creators of the WebFormsMvp project are planning to add convention based presnter binding so you no longer will have to add an attribute to the View to indicate which presenter to use, much the same way the MVC uses conventions for Controller and Actions.

With regard to MVC, currenttly the code in the dnnlabs codeplex project, supports the default controller (HomeController) and action (Index), so as long as thats all you need it works today.  However the indtention is to to be able to support full routing and use of the Helpers to build robust MVC style modules.


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN module development using MVC?DNN module development using MVC?


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