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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to upload images/files to display within a module?How to upload images/files to display within a module?
Previous
 
Next
New Post
1/23/2007 5:40 PM
 
Hi,
    I am developing a custom module and would like some advice on how I could enable individual users to upload images for display within the module. The module will enable users to create their own individual portfolios of work. I have tried searching for advice but could not find any that relate directly to this. Would I need to somehow make use of the file manager? If so then how would the users add these images to the module database to access them for display? I would need to display only the images that are relevant to the each individual users portfolio. It is kind of similar to creating a gallery module with individual albums. I am relatively new to DNN and would appreciate any useful advice.

Thanks,
Phil
 
New Post
1/23/2007 6:21 PM
 

Hi,

You can use the url control provided by DNN.

Simply add this to the top of your ascx:

<%@ Register TagPrefix="Portal" TagName="URL" Src="~/controls/URLControl.ascx" %>

And then the control anywhere on the page:

<portal:url id="ctlURL" runat="server" width="300" showtabs="False" showfiles="True" showUrls="True"
    urltype="F" showlog="False" shownewwindow="False" showtrack="False" />

This will do it for ya.


Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
New Post
1/23/2007 8:53 PM
 

This will do exactly what you need. Source code is provided. in C#. You have to register with the site to download the source.

Link to the site.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
2/6/2007 8:04 AM
 
Wow, that helped me a lot!

But how do I display the picture in the "viewer" part of my module?
So far I just saved the ctlURL.URL to my database. But how do I display it?

Like this:
<img alt="test" src="<%# "Path to picture (Needs to be dynamic, Portal/0 will not always work)" %>" />

?

Thanks
Espen Olsen
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to upload images/files to display within a module?How to upload images/files to display within a module?


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