How to create a DotNetNuke 2.x module?

Posts   
 
    
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39826
Joined: 17-Aug-2003
# Posted on: 05-Oct-2004 11:40:09   

Ok, a question for you from me this time simple_smile . We've build a website for a client of ours using DotNetNuke 2.x. Works great. Now, the client wants to have a form which is emailed to some email address. This is HTML 101, but in DotNetNuke I have to (I think I have to) write a module for that. It's very simple stuff, so the module is very easy to do, but I couldn't find information how to write that module. I can of course scan a lot of sourcecode but that takes more time than actually writing the module I think.

So do you have any links to documentation (or even tools, I read about a plugin for vs.net?) how to write your own module? Thanks!

Frans Bouma | Lead developer LLBLGen Pro
netclectic avatar
netclectic
User
Posts: 255
Joined: 28-Jan-2004
# Posted on: 05-Oct-2004 12:05:58   

You could go on this DotNetNuke Training Coursewink

Alternativly you could read the DNN Module Architecure Articles here

It's something i've been toying with doing but haven't gotten around to yet, so can't offer any practical advice.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39826
Joined: 17-Aug-2003
# Posted on: 05-Oct-2004 14:08:48   

netclectic wrote:

You could go on this DotNetNuke Training Coursewink

hehe yeah simple_smile

Alternativly you could read the DNN Module Architecure Articles here

It's something i've been toying with doing but haven't gotten around to yet, so can't offer any practical advice.

Thanks, I'll give it a shot. simple_smile

(edit) hmm. are these architectural docs really the docs I need? I just need to write a simple module, i.e.: inherit from some module and add a simple xml file (I think)

Frans Bouma | Lead developer LLBLGen Pro
bertcord avatar
bertcord
User
Posts: 206
Joined: 01-Dec-2003
# Posted on: 06-Oct-2004 00:31:52   

Otis wrote:

Ok, a question for you from me this time simple_smile . We've build a website for a client of ours using DotNetNuke 2.x. Works great. Now, the client wants to have a form which is emailed to some email address. This is HTML 101, but in DotNetNuke I have to (I think I have to) write a module for that. It's very simple stuff, so the module is very easy to do, but I couldn't find information how to write that module. I can of course scan a lot of sourcecode but that takes more time than actually writing the module I think.

So do you have any links to documentation (or even tools, I read about a plugin for vs.net?) how to write your own module? Thanks!

hehe, now I can help you here!

Tell ya what... you keep busy on the c# / VB.Net template engine and leave the DNN to me. I will whip up a sample application while I watch TV tonight and send it to you

Bert

Fishy avatar
Fishy
User
Posts: 392
Joined: 15-Apr-2004
# Posted on: 06-Oct-2004 00:45:20   

bertcord wrote:

hehe, now I can help you here!

Tell ya what... you keep busy on the c# / VB.Net template engine and leave the DNN to me. I will whip up a sample application while I watch TV tonight and send it to you

Bert

WOW frowning Could you write me a Teacher's Gradebook Program while you watch a movie?

Thanks,

Fishy.

swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 06-Oct-2004 02:00:11   

Say, if I send you a DVD, could you create me a complete POS system?

(I tried that once while reading a book. Not the same results...)

simple_smile

bertcord avatar
bertcord
User
Posts: 206
Joined: 01-Dec-2003
# Posted on: 06-Oct-2004 05:50:39   

swallace wrote:

Say, if I send you a DVD, could you create me a complete POS system?

sure POS stands for Piece of Sh flushed flushed right?

Ok. here is a very simple example for you. You can download from this link. http://www.corderman.com/portals/0/HTMLEmailForm.zip

The module consists of two controls

HTMLEmailForm.ascx – form has two textboxes. When a user fills out and selects submit the results are emailed to the user entered in HTMLEmailOptions.ascx HTMLEmailOptions.ascx – This form is used by the admin to edit\update the email address that the form results should be sent to.

I have included both the source and the install.

Install Only 1. Unzip the zip form the link above an extract. 2. Upload Installation\HTMLEmailForm.zip using the DotNetNuke file manager. 3. Add an instance of the module to a page.
4. Using the edit pencil select View Options.
5. Enter email address that form results should go to

To play with source 1. copy the files form the zip into DesktopModules\HTMLEmailForm 2. Open DotNetNuke Solution and add HTMLEmailForm.csproj

I find this the easiest method as the installer will automatically set up all the correct module definitions using the HTMLEmailForm.dnn

Now it took me about as long to write this email as it did to write the code as I had help using these templates. These are the Visual Studio templates you were referring to

http://dnnjungle.vmasanas.net/Default.aspx?tabid=28

Now how about the template editor for the c# / VB.Net template engine hahaha smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39826
Joined: 17-Aug-2003
# Posted on: 06-Oct-2004 09:58:41   

smile thanks a million, Bert!!! smile

Excellent stuff smile .

the template IDE... hmmm simple_smile if I have time I'll try, it's not that I don't want to, it's the lack of time sob. But then again, you won me a couple of hours on this mailform thingy simple_smile

Frans Bouma | Lead developer LLBLGen Pro
netclectic avatar
netclectic
User
Posts: 255
Joined: 28-Jan-2004
# Posted on: 06-Oct-2004 10:24:40   

Nice one bert simple_smile that could come in handy when i finally get around to playing with DNN.

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 06-Oct-2004 11:39:29   

DotNetNuke ? confused - me not know this... flushed

What is it, what does it do? confused

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39826
Joined: 17-Aug-2003
# Posted on: 06-Oct-2004 12:14:24   

wayne wrote:

DotNetNuke ? confused - me not know this... flushed

What is it, what does it do? confused

You do java and VB5 development mostly, Wayne? wink smile .

DotNetNuke is a portal engine, opensource/free: http://www.dotnetnuke.com and is completely written in .NET. It's based (not anymore I think) on IBuySpy, the example MS released for ASP.NET. Another portal engine based on that example is the rainbow portal.

Frans Bouma | Lead developer LLBLGen Pro
wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 06-Oct-2004 12:31:17   

You do java and VB5 development mostly, Wayne?

Actually, some java, bit of delphi, and mostly C# and vb.net and never in VB5 wink

DotNetNuke is a portal engine

Yeah, i read that on their website.. but what does "portal engine" mean? What does it do?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39826
Joined: 17-Aug-2003
# Posted on: 06-Oct-2004 14:00:22   

It's a CMS (content management system) with modules, so you can host multiple sites in it, build from modules and a stylesheet and that's it, so no more html or anything necessary simple_smile

Frans Bouma | Lead developer LLBLGen Pro
wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 06-Oct-2004 14:08:01   

Thanks for explaining simple_smile

swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 06-Oct-2004 23:55:49   

Sweet piece of code. I've been thinking about DNN, might now give it further thought. This helps. simple_smile

bertcord avatar
bertcord
User
Posts: 206
Joined: 01-Dec-2003
# Posted on: 07-Oct-2004 00:27:45   

wayne wrote:

DotNetNuke ? confused - me not know this... flushed

What is it, what does it do? confused

DNN is the coolest software on the planet...that is of course next to LLBLGen Pro. Has a very active user community here

http://www.asp.net/Forums/ShowForum.aspx?tabindex=1&ForumID=90

I learned .NET with this application and I have been using it for about a year a half. I set it up as my intranet at work and write all my web applications as DotNetNuke modules.

It is an easy way to manage users and groups and allows non techies to control content.

Bert