Associate SharePoint Documents with Application Specific Icons

You can’t tell what types of documents are in a SharePoint document library because they show a blank icon:

Add an icon for the document types. For pdf’s, download the small 17×17 pdf icon from Adobe: Save the icon to the “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATEIMAGES” folder on your SharePoint server.

As a best practice, make a copy of the “DOCICON.XML” file located in “c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATEXML” on your SharePoint server before modifying it in the step below. This will allow you to easily get back to where you started (without having to resort to restoring the file from tape).

Add <Mapping Key=”pdf” Value=”pdficon_small.gif”/> to the <ByExtension> section of the “DOCICON.XML” file. As a best practice, add the value in the correct alphabetically order based on the file extension.

Run iisreset.exe for the changes to take effect. You now have a specific icon for pdf documents:


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: