X
dnn.blog.
Back

DNN Europe module template for client programming

DNN Europe LogoThis year on the DNN Europe meeting in Banyoles, Spain, myself and some guys from the german section talked about the new client site programming paradigm and that it would be nice to have a module template specifically for this approach. And so I build a template that creates a module which has all the features that are needed to build a modern DNN module including DAL2 and using client site technics like jquery and Knockout.

Prerequistes + Installation of template

  1. Installation of http://msbuildtasks.tigris.org/files/documents/3383/28296/MSBuild.Community.Tasks.msi. This is an open source project for MSBuild tasks

  2. Installation of DNNtc MSBuild for DotNetNuke module development (http://dnntcmsbuild.codeplex.com)

  3. Copy ZIP-File in the following folder: C:\Users%USERNAME%\Documents\Visual Studio 2012\Templates\ProjectTemplates\Visual C#\Web

Create project

  1. Create a new project and select the new template. Project target should be in DesktopModules of a DNN Installation with version >= 7.0.1. Doublecheck that "create directory for solution" is unchecked.

  2. After creation open folder "Installation" and copy the code of "01.00.00.SqlDataProvider" to the clipboard

  3. In Browser (DNN started and logged in as host user) under "Host - SQL" paste the code in the script-field and check "Run as script". Execute this.

  4. In VS project in "Models\Generated" select the file "Database.tt" and click "save": The (depending) file "Database.cs" is generated again and should contain now the code for the poco of the underlying table.

  5. Compile solution in "Release"-Mode (Install package and manifest .dnn5-File will be created)

  6. Copy .dnn5-File from "Installation" folder in Windows-Explorer temporarily one level up (to main project level).

  7. In DNN "Host-Extensions" -> select "Create new Module" -> "From Manifest", then select module folder + check "Add Test page", confirm.

Sample project

DNN Europe Client Development Module Template

This template includes a sample project with all the code which is needed to do CRUD operations on a sample table with grid view and paging. So it is a good starting point to begin developing with DNN and Knockout and helps understanding the main concepts.

You can download it here: Module Template

Back

about.me.

Torsten WeggenMy name is Torsten Weggen and I am CEO of indisoftware GmbH in Hanover, Germany. I'm into DNN since 2008. Before this, I did a lot of desktop stuff mainly coded with Visual Foxpro (see http://www.auktionsbuddy.de). 

I'm programmer, husband, father + born in 1965.

Please feel free to contact me if you have questions.

Latest Posts

DNN module development with Angular 2+ (Part 7)
6/10/2018 1:43 PM | Torsten Weggen
DNN module development with AngularJS (Part 6)
12/16/2016 7:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 5)
12/16/2016 6:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 4)
12/16/2016 5:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 3)
12/16/2016 4:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 2)
12/16/2016 3:00 AM | Torsten Weggen
DNN module development with AngularJS (Part 1)
12/15/2016 7:19 AM | Torsten Weggen
Blogging in DNN with Markdown Monster by Rick Strahl
11/27/2016 1:14 PM | Torsten Weggen
Creating a global token engine
11/18/2016 10:25 AM | Torsten Weggen
DnnImagehandler - Hot or not ?
2/21/2015 11:52 PM | Torsten Weggen

My Twitter

Torsten Weggen 7/24/2021

@JohannesFinke https://t.co/3WGmhg3eN0 #keinrechterweg

Torsten Weggen 7/24/2021

@RolandHanske @Stefani38312507 @YouTube https://t.co/3WGmhg3eN0 #keinrechterweg

Torsten Weggen 7/24/2021

@zardorak https://t.co/3WGmhg3eN0 #keinrechterweg