DotNetNuke 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 registered the user controls that the DotNetNuke module wizard created for us but I told you not to run them yet because they would throw an error if we did.  So, the first thing we need to do today is to clean up the code so that it will run.  The wizard inserts code that you would use if you were going to create some kind of link manager.  The main problem here is that the code they wrote assumes you already have the data access layer and the controller written.  Since this tutorial is going to work from the top down, at the very least you need to comment out the code between the try and catch statements in the Page_Load method of the ViewDMBSample.ascx(.cs) files.

You can remove the other controls in the edit and settings module too.  You’ll need to remove the references to them in the code-behind if you do.

When you run the code, you’ll notice that the main View module is what shows up when you add the module to a page, the settings module is what shows up in page settings, and the edit module is what displays when you select the “Add” menu option off the module menu.

 

Other post in DotNetNuke - Module Development

Related Post

5 Responses to “DotNetNuke Modules – Where Stuff Shows Up”

Leave a Reply

Comment Policy:

  • You must verify your comment by responding to the automated email that is sent to your email address. Unverified comments will never show.Leave a good comment that adds to the conversation and I'll leave your link in.
  • Leave me pure spam and I'll delete it.
  • Leave a general comment and I'll remove the link but keep the comment.

Notify me of followup comments via e-mail

Bear