The best resources for module development are:
- Mitchel Sellers' book
- Chris Hammond's recent set of blog posts and Visual Studio Template files
- This webinar from DotNetNuke
- Michael Washington's adefwebserver.com site
I've got the book on order at the moment. Thanks.
Most of the modern material is going to suggest that you build modules using the "WAP" model. This requires the full version of Visual Studio as it want's to compile the code.
I don't know if you can use Chris Hammond's templates with VS Express. I believe that Mitchel Sellers' book covers both approaches, as do Michael Washington's tutorials.
I'm not familiar with WAP vs WSP, so I'll just take you at your word. By "full version" of Visual Studio, I assume you mean that Visual Studio Express 2010 is not suitable for this task for compiling the code?
As for your specific questions, pasting the SQL Code into the window on the SQL page is one way to do it. I'd probably recommend that you use SQL Server Management Studio Express to execute the various scripts, create the stored procedures, etc. If you are not going to try to produce installable versions of your module, you might just ignore this all together.
You will need to customize the database fields, etc. depending on your application. What you've referred to probably is the minimum and follows a "best practices" approach. Again, the resources that I mentioned will cover this in more detail.
Curiously, I tried to install SQL Management Studio Express, but I didn't see the "feature" available. I downloaded the installer and followed the prompts, only to be told that there were not possible "features" to upgrade my existing SQL Express install with. I remember dealing with SQL Management Studio before and I do remember being impressed...I just can't seem to install it for some odd reason.
You comments about not being familiar with VS lead me to believe that you are not experienced in developing ASP.NET programs. You will find that there is, perhaps, a bit of a learning curve. Do you have other programming experience? If so, you should be able to figure things out?
I have many years worth of PHP development experience, along with a slathering of other languages that I've toyed with (Python, Java, now Node.js), and I did write a few VB6 applications back in the day. So it's not totally unfamiliar. Perhaps it might be that there are simply more layers of indirection in dotnetnuke than I am used to in other frameworks/CMS's that I have used in the past.
Depending on the actual functionality that you need to achieve with your module, you might be a candidate for the (very) new Razor tool from Microsoft that is built into the new version of DotNetNuke (5.6.1) that was released today. That might ease the task of learning your way around.
I did notice the upgrade light when I was working today. I'll take a look at it.
Finally, the more specific your questions are regarding the application you are trying to produce, the better we can help you.
I have a widget created by someone else in my company. The widget is an image carousel, with a left and a right button. Originally we were simply going to run the widget off of an AJAX pull that has a list of images, les and such, however we found the JSON to be too cumbersome and decided that we should create an admin page for managing the widget...so I figured that a module was the next logical step up.
My approach, at least as it goes in my head, was simple. The database would store a row per image, and each row would have four columns, the ID, the image le, an image URL that the image goes to when clicked, and the image itself. The image itself is the most interesting part, I was taking a look at DNN's file manager and presumed that I could save myself a little trouble by not incorporating the file upload into the module itself, but having the database refer to the image, either by name or by fileID (I haven't looked too closely at the docs for DNN's file manipulation tools). However, when I couldn't install the SQL Manager or get the SQL query window to recognize the default sql that was spat out by the template, I kind of ran into a roadblock...
You might also want to look at OWS and DotNetMushroom RAD as alternatives for creating modules. We have tutorials here for both of those.
I saw those. I'll probably take a look OWS tomorrow.
Thanks for your help.