SharePoint Stuff

A collection of helpful tips and resources on maximising the value from a SharePoint Portal Server and Windows SharePoint Services Implementation.

Tuesday, February 28, 2006

Show PDF Icon in Listings

To show the PDF (or any other icon) in SharePoint
1. Create a 16x16 icon file, call it pdf16.gif and upload it to the /60/TEMPLATE/IMAGES folder
2. Then open /60/TEMPLATE/XML/DOCICON.XML and in the "By Extension" section add the following line
< key="pdf" value="pdf16.gif">

Restart IIS and you're done.

3 Comments:

At 2:21 AM, Anonymous Ricardo Magalhães said...

Don't forget to make a full crawl and if the pdf icon have a diferent name than pdf16.gif you have to have one with that name to show in the search results.

 
At 11:41 PM, Blogger layla said...

As you've described in this post, I followed the directory path. But actually no XML file was found. So then by runnig a search action, DOCICON.XML was found but in "12" instead of "60".Here, value fields in "By extention" part are set by file name in "IC*.GIF" name format( for example:ICDOC.GIF,ICDOCX.GIF,...). In this case I renamed the file to "ICPDF.GIF" but I haven't restart the IIS yet. I'm writting to ask you if there is still any other point to be considered before restarting the IIS.

 
At 6:33 PM, Blogger Khan said...

Hey thanks for the post, After doing that it looks like i have permission problem. Even i have full permission on Library, but the icon is not shown, ot cross sign is shown, path in properties looks okay, (http://portal/_layouts/images/pdf.gif)but its not shown.
Please help

 

Post a Comment

<< Home