The easiest way to create a module in DotNetNuke 6 and debug

Is it possible to avoid all the packaging and just create a web application with a .ascx file and use it? The closest I can find is an article that is for 5.1 and does not fully work for v6.

http://mestanzasoft.wordpress.com/2011/03/27/creating-a-dotnetnuke-dnn-module-with-an-ascx-control/

So, if there is a more relevant tutorial for v6, let me know, please.

+4
source share
3 answers

Yes, you can.

If you go to Host > Module Definitions and click Create New... , you will find ways to create a new module:

  • New: this will allow you to create a simple module with a single view control. You must provide information about the module and create a parent folder for this.
  • Management: this will allow you to create a new module from the control. If you do not want to create a new module folder and manage it in the user interface, you can simply add a new folder to the desktopmodules folder and delete the ascx element that inherits from DotNetNuke.Entities.PortalModuleBase , and then use this option to provide the correct folder and manage it you created, and you're done.
  • The last option is to create it using the manifest and is generally useful if you want to split a single module with several definitions into different modules.

Please let me know if you have further questions.

thanks

+4
source

You should be able to select "Create a new module" on the "Host β†’ Extensions" page, and then select the control (which, I think, is what was posted on the blog). What specifically doesn’t work?

One thing that may be the problem you are facing is that the control should inherit from IModuleBase (possibly through PortalModuleBase ). You cannot just remove a control that knows nothing about the DNN on the website and get the DNN to make it into a module (although you can make a thin shell around such a control).

+5
source

In DNN 6.0, you need to switch to Host-Extensions ... then hover over the translucent "Control" button, which you can hardly see (possibly hidden behind the word EXTENSIONS), and wait for the pop-up dialog box, and then click "Create a new module "

: (

+4
source

All Articles