Reputation: 5356
Can I avoid all the packaging and just create a Web application with a .ascx file and use that? The closest thing I can find is this article which is for 5.1 and does not completely 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 up to date tutorial for v6 let me know please.
Upvotes: 4
Views: 7910
Reputation: 41
In DNN 6.0 you have to go to Host - Extensions... then hover over the semi-transparent "Manage" button, which you can barely see (hidden behind the word EXTENSIONS, perhaps), and wait for the popup dialog, and THEN click "Create New Module".
:(
Upvotes: 4
Reputation: 5806
Yes you can.
If you go to Host > Module Definitions
and click on Create New...
, you will find there are there ways to create a new module:
DotNetNuke.Entities.PortalModuleBase
and then use this option to provide correct folder and control that you have created and you are done.Please let me know if you have more questions.
Thanks
Upvotes: 4
Reputation: 155895
You should be able to choose Create New Module from the Host -> Extensions page, and then choose the control (which, I think, is what the blog post said). What specifically isn't working?
One thing that may be an issue you're running into is that the control needs to inherit from IModuleBase
(probably via PortalModuleBase
). You can't just drop a control that knows nothing about DNN in the website and get DNN to make it into a module (though you can make a thin wrapper around a control like that).
Upvotes: 5