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 ExtensionsModulesModulesimage and urlcontrolimage and urlcontrol
Previous
 
Next
New Post
7/26/2011 4:01 AM
 
Hi,

In admin->site settings->appearance is a nice image selecting meganism that is based on (i think) the urlconrol and updates an image next to it when you select a file in the urlcontrol.

I've got the urlcontrol doing all the functionality now but I cannot find any way to update the image. For instance: how do I active the postback when a file is selected in the urlcontrol?

Any suggestions that can point me into the right direction?

Thanks in advance,

Willem
 
New Post
7/31/2011 11:04 PM
 
The control being used there is actually the DnnFilePicker control, located in the DotNetNuke.Web assembly/project. This is different from the url control, as it is meant to be just a file picker (has nothing to do with url's, pages, etc.). I would recommend using this control over the URL control for file picking (it's also tied into user specific folders properly too). 

Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
10/7/2011 2:23 AM
 
A little late reaction, but finally got some time for the project that's using this.

Thanks, it is indeed exactly what I was looking for.

I had some difficulties by getting it running so here's the code I used if someone else runs into the same thing:

register the dll DotNetNuke.Web in your project.
register the control in your module view:
<%@ Register TagPrefix="webcontrols" Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" %>

then use the control like this:

<webcontrols:DnnFilePicker runat="server" id="test" MaxWidth="200" FileFilter="jpg,jpeg,bmp,gif,png" ></webcontrols:DnnFilePicker>
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesimage and urlcontrolimage and urlcontrol


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