Search This Blog

Saturday, October 10, 2009

Show PDF icon in SharePoint Library view

To show the PDF icon (or any other icon) in SharePoint Document Library view do following:
1. Find 16x16 icon file, say pdficon.gif and upload it under \12\TEMPLATE\IMAGES folder
2. Then open \12\TEMPLATE\XML\DOCICON.XML and in the "By Extension" section add the following configuration line:
< key="pdf" value="pdficon.gif">

Restart IIS and now PDF icon should appear against PDF files in any document Library.

Do the same for other file types also.

No comments:

Post a Comment