Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesModulr from scratchModulr from scratch
Previous
 
Next
New Post
8/20/2010 1:39 AM
 
I am trying to build a module using the tutorials found at www.adefwebserver.com. As comprehensive as those are I am still lost quite a bit. I will try to break down what I am doing so that it can be viewed in its components.

First, I want to be able to create a 'award' that will be in its own table and allow an image to be uploaded with the new 'award' record. I can get the creation of the award record done using the tutorials without problem, but I would like to know how to make an 'upload image' control along with it so that the record is created with a field tied to the location of the newly uploaded file.

Second, I want to be able to create a row in a new table where the 'award' is tied to a user of the site. I am sure I could make it as a seperate module but I would prefer it to be part of the same module, simply another control that is part of it. I am fuzzy on how to tie multiple controls into one module and how to link them correctly. The 'award' can be given to multiple people on the site so the query will use a simple list box to select who gets the award. Eventually it will get a bit more complex where the list will exclude people that already have an award that can only be given once, etc. But for now I am just trying to get this to work.

Last, the display portion will be something that will pull the userID from the url parameters and show one specific users 'awards' based on who it is requesting. This I am sure will have to be a seperate module as well as a standalone aspx that will allow users to show a dynamic image based on the award table. Honestly that is the easiest part that I can do already. I have been doing .NET for a few years now and I have this module built for ASP but porting it to DNN has been the issue. I would like to use built in controls if possible and to be honest I didn't expect this project to take more than about an hour but I am on day 3 and still no end in sight. I am finally out of patience and my eyes are going crossed from reading tutorials and manuals and it is time to ask for some help.

Thanks in advance!
 
New Post
8/22/2010 1:07 PM
 
Hi,

The easiest way to get started is to use the DNN PA Module project template for Visual Studio. It is installed with the DNN Visual Studio Starter Kit, available here: http://dotnetnuke.codeplex.com/releas.... It provides you with the shell of a very, very basic DNN module, all correctly coded, and working. Follow the pattern it provides, and you'll find yourself making swift progress.

One thing to bear in mind, when it prompts you for the directory in which to create the project, create one for your module within the DesktopModules folder of your development DNN site. That might sound a strange thing to do, but it is the recommended approach and simplifies various other tasks. If you try it, I think you'll find that all will be revealed.

Hope that helps


Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
New Post
8/22/2010 7:30 PM
 
Thank you for the info, Paul. I should have clarified that I have a working module for most intents and purposes for everything EXCEPT being able to upload the image and actually tie the image to the database record and store it on the server. I can manually put an image on the server right now and create the award record then manually link it to an image that is on the server but that is not what I would prefer to do. I have tried looking at how other modules do it but there aren't many references to look at right now. The module is not going to be distributed and will only be on our production server so packaging it to be pretty for other sites is not a concern right now. We just need to get the functionality working with DNN that we had with our ASP site. Thanks again for the info.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesModulr from scratchModulr from scratch


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out