CODEDIGEST
Home » FAQs
Search
 

Technologies
 

How to Add a Default Icon to Sharepoint Document Library for a Document if its Icon is not present?
Submitted By Satheesh Babu B
On 12/23/2008 8:33:50 AM
Tags: Interview Questions  

Adding Default icon for unknown file types

 

 

You can follow the below steps to add a default icon to display just before the actual file in share point document libary.


1)  Login to the server where you have installaed sharepoint.

2) Copy the default image inside C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\Images folder.

3) Add the following tag inside < DocIcons> tag in Docicon.xml file that found in C:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\Template\Xml or C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml .

 

<Default>

  <Mapping Value="defaulticon.gif"/>

</Default>

 

Now restart the IIS and see it in action.

 

To restart IIS, type "inetmgr" in RUN(Press Win Key + R) and restart the website or type IISRESET in RUN.

 

Read How to Add a PDF or Other Icon to Sharepoint Document Library?

Recent FAQs
  • View All FAQs..