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\TEMPLATE\IMAGES” 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\TEMPLATE\XML” 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:

µ

About Mike F Robbins

Senior Systems Engineer and Technology Consultant with over sixteen years of professional experience providing enterprise computing solutions for educational, financial, healthcare, and manufacturing customers.
This entry was posted in Microsoft Office SharePoint Server 2007 (MOSS 2007), Windows SharePoint Services 3.0 (WSS 3.0). Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s