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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How do you reference images associated with custom module?How do you reference images associated with custom module?
Previous
 
Next
New Post
2/18/2011 5:58 PM
 
I am creating a custom module and I have some images associated with it.  They reside at D:\Inetpbu\DNNdev\DesktopModules\MyModule\images.  One of these images is called abc.gif.  I've tried using a dnn imagecommandcolumn control but it doesn't do anything and I'm not sure whether it's because I have a bad reference to the image or whether it just isn't working.
<dnn:imagecommandcolumn CommandName="abc" ImageUrl="~/images/abc.gif" EditMode="URL" /> 

I've also tried putting a link on a graphic using standard html and that isn't finding the image either.
<a href="#"><img src="/~/images/abc.gif" border="0" alt="ABC" /></a>
OR
<a href="#"><img src="~/images/abc.gif" border="0" alt="ABC" /></a>
OR
<a href="#"><img src="images/abc.gif" border="0" alt=ABC" /></a>

Do I need to place the images in a different folder or do I need to reference them in some other way?

At a Loss
 
New Post
2/18/2011 6:18 PM
 
Here is how I do things with my module

First some general info:
When a module is installed it goes into a folder (with a name you specify) in the DesktopModules dir of the website.

Here is a typical image tag for our LMS:
<img src="~/desktopmodules/bgi_lms/images/abc.gif" border="0" alt="Some Alt Text Here" />
OR
<asp:image id="imgName" runat="server" ImageURL="~/desktopmodules/bgi_lms/images/abc.gif" />

 I hope this helps you.

 

Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
2/18/2011 6:35 PM
 
Thank you VERY much.  I got the <asp:Link> version to work.
 
New Post
2/18/2011 6:35 PM
 
Sorry - I meant I got the <asp:image method to work.
 
New Post
2/22/2011 9:20 AM
 
Very happy to hear this.  Please let us know if you have any other issues.  


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How do you reference images associated with custom module?How do you reference images associated with custom 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