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.
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 16x16 icon
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
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptRead More
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.