Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This is both a sample module and VS template for creating DNN modules using WebFormsMVP.

branch: master
Octocat-spinner-32 BuildScripts Basic structure and files are in place. November 13, 2011
Octocat-spinner-32 ClientResources Wired up CSS and JS samples using Client Resource Management features… November 14, 2011
Octocat-spinner-32 Dependencies Add WebForms MVP and other basic code analysis November 15, 2011
Octocat-spinner-32 Documentation Updated welcome text to be more relevant. November 14, 2011
Octocat-spinner-32 Models Tokenized new settings components for #1. November 15, 2011
Octocat-spinner-32 Presenters Merged in from module branch: "Updated settings logic to save title v… November 15, 2011
Octocat-spinner-32 Properties Replaced namespace and project name with tokens. November 14, 2011
Octocat-spinner-32 TemplatePackages Updated template package for #6 November 15, 2011
Octocat-spinner-32 Views Tokenized new settings components for #1. November 15, 2011
Octocat-spinner-32 WebFormsMvpModule.Tests Fixed casing of namespace token for #10. November 21, 2011
Octocat-spinner-32 .gitignore Basic structure and files are in place. November 13, 2011
Octocat-spinner-32 Correctness, Globalization, Security, and WebForms MVP.ruleset Add WebForms MVP and other basic code analysis November 15, 2011
Octocat-spinner-32 DotNetNuke.ico Updated template file info, added an icon, set up tokens, etc. November 14, 2011
Octocat-spinner-32 License.html Re-organized dependencies. November 14, 2011
Octocat-spinner-32 README.md Updated test project token usage and updated the readme with more inf… November 15, 2011
Octocat-spinner-32 ReleaseNotes.html Basic structure and files are in place. November 13, 2011
Octocat-spinner-32 WebForms MVP.ruleset Add WebForms MVP and other basic code analysis November 15, 2011
Octocat-spinner-32 WebFormsMvpModule.csproj
Octocat-spinner-32 WebFormsMvpModule.dnn Replaced namespace and project name with tokens. November 14, 2011
Octocat-spinner-32 WebFormsMvpModule.sln Re-organized dependencies. November 14, 2011
Octocat-spinner-32 WebFormsMvpModule.vstemplate Merge pull request #6 from bdukes/code-analysis November 15, 2011
README.md

About

This Visual Studio template has the following features:

  • Comes with all the normal DNN module "glue" - build scripts, manifest file, license, release notes and read me files
  • Includes a DNN module "View" control and corresponding WebFormsMVP view interface, model & presenter
  • Includes a DNN module "Edit" control, also in the WebFormsMVP style, that shows off the DNN 6 form pattern
  • Contains samples of the new DNN form pattern on the edit and settings pages
  • Implements new organizational JS/CSS strategy using the DNN 6.1 Client Resource Management API
  • Includes a standard DNN module settings control, which also uses the new form patterns.
  • Includes a test project, and a test fixture for each presenter.
  • Comes with all dependencies (DNN, MbUnit, Moq, MSBuild Community Tasks)

Download

Head over to the downloads tab up above and download both of the project templates.

Set up

Checkout this 5 minute video to see how to set it up: http://screencast.com/t/MUDpyxrg9.

These templates work just like normal VS templates, the only special stuff to note is that you should create the module project first and the test project second. Put the module project in the DesktopModules folder of your dev environment, and then put the tests project inside the module project folder. This'll give you a nice self contained dev environment. If that sounds confusing, check out the video, as that's exactly what it shows (and more).

Note

There are a few items that you may wish to edit in the vstemplate files. Here are the default values:

  <CustomParameter Name="$YourCompany$" Value="Awesome Cycles" />
  <CustomParameter Name="$Namespace$" Value="AwesomeCycles.Dnn.Modules." />
  <CustomParameter Name="$YourWebsite$" Value="http://www.dotnetnuke.com" />
  <CustomParameter Name="$YourEmail$" Value="awesome.cycles@dotnetnuke.com" />
  <CustomParameter Name="$CopyrightYear$" Value="2011" />

I'd recommend updating the vstemplate file with new values and placing it back in the zip before placing in the visual studio templates folder and using it.

Issues

If you have any issues. Please open one here using the issues tab above.

Something went wrong with that request. Please try again.