Tuesday, October 7, 2008 10:15 AM bdukes

C# Compiled DotNetNuke Module Template

It shouldn't be hard to get started writing a module for DotNetNuke, but it doesn't seem like there's a whole lot of help especially when you are wanting to use C#.  At Engage, we have created a Visual Studio project template which will get you started developing a C# DotNetNuke module, using a Web Application project (rather than the, in my opinion, much more cumbersome Web Site project).  It is available for free on our downloads page after registering on the site.

The template will get you started with the basics of a DotNetNuke module, providing basic placeholder controls (for view, edit, and settings), base classes to use for your module controls and your settings control, a manifest and NAnt build file to easily package your module, and the basic starting point (and sample code) for your business controller class and data provider.  It should really speed up how you start a new module, and free you from always copying your last module and then having to figure out what to delete and what to leave.

To use the template, put the downloaded zip file into the C# web templates folder for Visual Studio.  This is typically in My Documents/Visual Studio [2005|2008]/Templates/ProjectTemplates/Visual C#/Web (you might have to create the Web folder yourself).  This will make the new project type appear under the Web node for C#, in the My Templates section, when you create a new project.  You might also want to open up the zip file and alter the template manifest (C# Compiled Module.vstemplate) to include your company name (replace the values in the CustomParameters section where it says YourCompany).

Please check it out, we hope it helps you out.  Happy module building!

[Cross-posted from http://www.engagesoftware.com/Blog/EntryID/162.aspx]

Filed under: , , , , , , , , , ,

Comments

# re: C# Compiled DotNetNuke Module Template

Wednesday, May 6, 2009 1:22 AM by almny

thank you man for this source code i regester and download it

i hope it will hellp me

# re: C# Compiled DotNetNuke Module Template

Wednesday, June 24, 2009 5:21 AM by Alastair

Hi,

I can only find a 2008 template there, although your article implies that you have both 2005 and 2008 templates?  Is there any way that I can get the 2005 version?  I did try following the guidance in :blogs.msdn.com/.../how-to-use-solutions-and-projects-between-visual-studio-2005-and-2008.aspx in order to convert it, and am able to open the project and solution in VS2005, but it does not show up in the templates dialog.

# re: C# Compiled DotNetNuke Module Template

Thursday, October 1, 2009 12:41 AM by Alec Reyes

Hi, I downloaded the zip file and unzip it on the folder mentioned above but it didnt show in VS 2008. Did I miss anything?

# re: C# Compiled DotNetNuke Module Template

Friday, October 2, 2009 10:04 AM by bdukes

In order to have Visual Studio see the template, you need to place the zip file in that folder, rather than unzipping it.

Hope that helps.

# re: C# Compiled DotNetNuke Module Template

Tuesday, February 23, 2010 2:25 PM by super

super...

# re: C# Compiled DotNetNuke Module Template

Wednesday, May 11, 2011 8:13 AM by Smitha

Plz could u tell me where can i download the sip file of a C# Compiled DotNetNuke Template

# re: C# Compiled DotNetNuke Module Template

Wednesday, May 11, 2011 9:53 AM by bdukes

It's "Free C# Module Template VS2008" in the Other Downloads section on www.engagesoftware.com/.../Downloads.aspx

# re: C# Compiled DotNetNuke Module Template

Tuesday, May 17, 2011 6:36 AM by Smitha

Does this starter kit work for DNN 5.x

# re: C# Compiled DotNetNuke Module Template

Tuesday, May 17, 2011 9:22 AM by bdukes

The template has not been updated for DNN 5.  To update, you would need to adjust the manifest, and update the references to DotNetNuke (otherwise, everything else should be fine).  A more up-to-date template can be found at christoctemplate.codeplex.com

Leave a Comment

(required) 
(required) 
(optional)
(required)