Home

SharePoint IT Pro Blog

MSDN Magazine Feed

Tuesday, June 2, 2009

Adding a new document type and file type icon

To add a document type and type icon, do the following:

  1. In the Program Files\Common Files\Microsoft Shared\web server extensions\50\Templates\1033\xml directory, open DOCICON.XML.
  2. In the middle of the file, find the ByExtension section.
  3. For the sake of example, we will add a wav file type and an icon to represent what kind of file it is. Add a line like the following:
  4. In the Program Files\Common Files\Microsoft Shared\web server extensions\50\Templates\1033\Images directory, add an appropriate icon and call it "icwav.gif".
  5. Restart Microsoft Internet Information Services (IIS).
  6. Create a new subweb.
    All sites created from now on will display icwav.gif in document libraries for files that have the .wav extension.

No comments: