Monday, November 28, 2011

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:
    <Mapping Key="wav" Value="icwav.gif"/> 
  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:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

#Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc

 #Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc Linux is an open-source operating system that is loved by millio...