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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryicon stating what type of file is available for download..erroricon stating what type of file is available for download..error
Previous
 
Next
New Post
1/17/2006 8:38 AM
 

Hi.

Have a look at the link below http://dev.triumph-motorcycles.net/Technical/Documentation/tabid/58/Default.aspx look at the image and next to the document title is a small gif image/icon. Why is that there and should it be there??

It should show a .PDF icon for the file type uploaded. There is an icon but it resembles a blank gif place holder.

Can anyone help?

 

regards
Colin

 
New Post
1/17/2006 9:43 AM
 

Based on the file extension, the Repository will look in the DesktopModules/Repository/icons folder for a matching icon. It will look for a .png, then a .gif and finally a .jpg image file with a filename that matches the file extension. If it does not find a match it will automatically use "unknown.png" as the file icon.

Example: You upload a Word document ( .doc extension ), it will look in the icons folder for doc.png, then if it doesn't find it it will look for doc.gif and finally doc.jpg. If it didn't find any of those files it will use unknown.png.

I don't believe there is an icon for .pdf in the default repository package, so if you want a .pdf icon, create a graphic (16x16) in any of the three supported formats named pdf.png or pdf.gif or pdf.jpg and place it in the icons folder.

Your other option is to remove the icons altogether. Edit the template.html file for the skin your using and remove the [FILEICON] tag.

 
New Post
1/17/2006 10:01 AM
 

Hi sfabian,

Thanks for that. Icon upload and all is pretty. U want a copy of the icon?

 

regards

Arthusc

 
New Post
1/17/2006 10:18 AM
 

Hi sfabian,

Not sure if the behavior is correct when the page loads with the icon.

For instance, the page title has an icon next to the description as well as the documents file type icon. When the page loads the page title (container) icon flashes up then when the page has finished loading it disappears. Also the pdf icon flashes up at the correct 16 x 16 size then when the page has finished loading it is stretched out of perspective.

Have a quick look as the page loads.

http://dev.triumph-motorcycles.net/Technical/Documentation/tabid/58/Default.aspx

Regards

arthursc

 
New Post
1/17/2006 12:18 PM
 

yep, sorry .. a small bug in the template file.

All of the templates have been tweaked in the upcoming Jan release. The icon size is fixed in the new templates.

If you don't want to wait..

In the template.html file, make the first row ( TR ) look like this...

 <TR>
  <TD>
  <TABLE CLASS="normal" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
  <TR BGCOLOR="Gainsboro">
   <TD CLASS="Head" ALIGN="Left" WIDTH="1" VALIGN="Middle">[EDIT]</TD>
   <TD CLASS="normal" ALIGN="Left" WIDTH="16" VALIGN="Middle">[FILEICON]</TD>
   <TD CLASS="Head" ALIGN="Left" VALIGN="Middle" style="padding-left: 3px;">[TITLE]</TD>
  </TR>
  </TABLE>
  </TD>
 </TR>

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryicon stating what type of file is available for download..erroricon stating what type of file is available for download..error


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