Learn More





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!

Module Development Best Practices

  • 4/7/2015
  • 5664


Module Development Best Practices

Last updated 7 years ago

Note: this wiki also contains other pages on Best practices


The wiki already has a number of useful pages of content that demonstrate how to develop modules:

In addition it's highly recommended you consider the module development templates discussed in this blog . The blog entry also links to a short video explaining how to use these templates.


There are a number of ways to do packaging for modules such as
Automated DotNetNuke Module Packaging MSBuild and Automated Module Packaging for DotNetNuke, as well as using the built in UI to create packages.

There is also extensive documentation on the Manifests format and all of it's capabilites available.


  • Do use DotNetNuke.Common.Globals.NavigateURL when generating links

  • Do have your module controls inherit from DotNetNuke.Entities.Modules.PortalModuleBase

  • If your modules use jQuery, please use the relevant framework calls to ensure only one copy if loaded.


  • Don't use Session variables. Session variables can cause issues when running in webfarm scenarios. Neither DotNetNuke or any of the core projects use session variables for this reason.

  • Don't trust user input - if you need to accept user input you should use the PortalSecurity InputFilter methods to filter the content as required.


  • Consider setting the following attribute in your web.config file to improve speed for recompilation
    <compilation ... batch="false"> ...</compilation>

This article has a number of other optimizations you might consider.
Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out