Associate SharePoint Documents with Application Specific Icons

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

Solution:
Add an icon for the document types. For pdf’s, download the small 17×17 pdf icon from Adobe: http://www.adobe.com/misc/linking.html. 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

%d bloggers like this: