Tag - Add Icons

How to Add Icons to Document Types in SharePoint

In this post i am going to explain, how you can add icon to unkown document types. If you add a unkown document type to SharePoint library, a netural document icon appears.

How to Add Icons to Document Types in SharePoint

Unkown Document Type

 

The above shown example is for PDF type document. In this example i am explaining about how to add pdf document icon but these steps are same for any document type.

1. Download pdf 16×16 icon

How to Add Icons to Document Types in SharePoint

 

2. Store icon to following path of 14 hive folder

 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES

 

3.  Open the file DOCICON.XML located in the folder C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML.

Add following line of code into section ByExtension tag

<Mapping Key=”pdf” Value=”pdf16.gif” />

 

4. Restart IIS with command iireset

Now you when you reload document library or add new pdf file you can see pdf icon associated to type column.

I hope you liked this post, please don’t forget to post your comment thanks

Read more...