DotNetNuke Modules – Creating Base Modules

Now that we have DotNetNuke installed into Visual Studio we can go ahead and create our first modules. Actually, creating the modules is pretty simple. But it is even easier to do it wrong, which is why you need to read this post.

Assuming you have your DotNetNuke project open, right-click on the project folder to bring up a menu. Select “Add New Item…” from the menu. This will bring up the “New Item Template” dialog. Under “My Templates” at the bottom of the list, you should see the template, “DotNetNuke Dynamic Module.” Click on this template, select the language you want to work in, and give the module a name. The rest of this series will be in CSharp, so if you want to follow along, you’ll want to select CSharp as the language you are using.

I’m going to name this module “DMBSample.” Note, it is absolutely critical that you run this template from the project folder, NOT one of the directories. If you don’t, you will either have to start over, or you’ll need to move the files around. You’ve been warned!

Once the template has completed running, you’ll need to rename two of the directories the template created. An HTML file will display at completion telling you exactly what you need to do. DO NOT just close that file thinking it is just a status message. Read it, at least the first time you create modules, and do what it says.

 

Other post in DotNetNuke - Module Development

Related Post

  • DotNetNuke Modules – Registering Your ModuleDotNetNuke Modules – Registering Your Module Yesterday, we used the DotNetNuke template to create a skeleton module and it's supporting files. Today, we want to get those modules registered into our Visual Studio copy of DotNetNuke so that a...
  • DotNetNuke Modules – Install DNN into VS 2008DotNetNuke Modules – Install DNN into VS 2008 Today, we will install DotNetNuke into Visual Studio so that we can create our first module. So fire up Visual Studio, and let's get going. I'll be using Visual Studio 2008 to walk you thro...
  • Creating DotNetNuke ModulesCreating DotNetNuke Modules I've decided to start a series on how to create DNN Modules since I have several clients who need to know this information and I don't know of one good place I can send them that has it all laid ou...
  • DotNetNuke Modules – Where Stuff Shows UpDotNetNuke Modules – Where Stuff Shows Up We continue our series on creating DotNetNuke modules today by showing you where the various components of the module we created last week show up in DotNetNuke. Remember, last Thursday, we ...
  • DotNetNuke – Make Your Module SearchableDotNetNuke – Make Your Module Searchable So far, you know everything you need to know to get a basic module up and running. There are a few items we still need to cover regarding the configuration of your module so that it can have diffe...