- Copy the .gif file that you want to use for the icon to the following folder on the server, as appropriate for your version of SharePoint: SharePoint Portal Server 2003 - Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\ImagesSharePoint Server 2007- Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\ImageSharePoint Server 2010 - Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Images
- Stop IIS at a command prompt by running IISReset /stop
- Edit the Docicon.xml file to include the .pdf extension. To do this, follow these steps:
- Start Notepad, and then open the Docicon.xml file. The Docicon.xml file is located in one of the following folders on the server: SharePoint Portal Server 2003 - Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\Template\XmlSharePoint Server 2007- Drive :\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\XmlSharePoint Server 2010- Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Xml
- Add an entry for the .pdf extension. For example, add a line that is similar to the following to the Docicon.xml file, where NameofIconFile is the name of the .gif file: <Mapping Key="pdf" Value="NameofIconFile.gif"/>
- On the File menu, click Save, and then quit Notepad.
- Start Notepad, and then open the Docicon.xml file. The Docicon.xml file is located in one of the following folders on the server:
- Start IIS at a command prompt by running IISReset /start
Wednesday 27 July 2011
Display / Show PDF icon in Sharepoint / MOSS
Labels:
icon,
pdf,
Sharepoint 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment