Setup File Icons for all non Office files (Like PDF, mp3, mpeg, flv etc)

Vikas413
Posted by in SharePoint category on for Beginner level | Points: 150 | Views : 10002 red flag

This post will help non developer IT professionals to add new File type icons in SharePoint like PDF which is not supported by SharePoint by default.

Document library in SharePoint shows file icons before file name in default view. and it shows blank (unknown) icon before any unknown file type which is non Office file. 

File type and Icon mapping is stored in ‘…\14\TEMPLATE\XML\DocIcon.xml’ file.

Icon files can be found @ ‘…\14\TEMPLATE\IMAGES’ folder. All custom icons should also go in same folder.

To add new file type you need to do following entry at the end of XML file in ‘’ node.

<Mapping Key="pdf" Value="icpdf.gif" OpenControl=""/>

check out the name of icon file. it should start with character sequence ‘IC’ which is type of mandatory to make your icon visible in Document library.

OpenControl is ActiveX control which will be used to open the file of given type. you can create your own control and distribute to all client to support more files types then default ‘SharePoint.OpenDocuments’. Default ‘Open Control’ is installed with MS office at the time of setting up client desktops.

Here is the post to create custom open control.

Default supported file types are as given below:

File extension

Icon file name

File extension

Icon file name

File extension

Icon file name

accdb

icaccdb.gif

master

icmaster.gif

stt

icstt.gif

accdt

icaccdb.gif

mht

icmht.gif

thmx

icthmx.gif

accdc

icaccdb.gif

mhtml

icmht.gif

tif

ictif.gif

accde

icaccde.gif

mpd

icmpd.gif

tiff

ictiff.gif

accdr

icaccde.gif

mpp

icmpp.gif

txt

ictxt.gif

asax

icasax.gif

mps

icmps.gif

vbe

icvbe.gif

ascx

icascx.gif

mpt

icmpt.gif

vbs

icvbs.gif

asmx

icasmx.gif

mpw

icmpw.gif

vdw

icvdw.gif

asp

ichtm.gif

mpx

icmpx.gif

vdx

icvdx.gif

aspx

ichtm.gif

msg

icmsg.png

vsd

icvsd.gif

bmp

icbmp.gif

msi

icmsi.gif

vsl

icvsl.gif

cat

iccat.gif

msp

icmsp.gif

vss

icvss.gif

chm

icchm.gif

ocx

icocx.gif

vst

icvst.gif

config

icconfig.gif

odc

icodc.gif

vsu

icvsu.gif

css

iccss.gif

odp

icodp.png

vsw

icvsw.gif

db

icdb.gif

odt

icodt.png

vsx

icvsx.gif

dib

icdib.gif

ods

icods.png

vtx

icvtx.gif

disc

icdisc.gif

one

icone.png

wdp

ichdp.gif

doc

icdoc.png

onepkg

iconp.png

webpart

icdwp.gif

docm

icdocm.png

onetoc2

icont.png

wm

icwm.gif

docx

icdocx.png

png

icpng.gif

wma

icwma.gif

dot

icdot.png

pot

icpot.png

wmd

icwmd.gif

dotm

icdotm.png

potm

icpotm.png

wmp

icwmp.gif

dotx

icdotx.png

potx

icpotx.png

wms

icwms.gif

dvd

icdvd.gif

ppa

icppa.png

wmv

icwmv.gif

dwp

icdwp.gif

ppam

icppam.png

wmx

icwmx.gif

dwt

icdwt.gif

ppt

icppt.png

wmz

icwmz.gif

eml

iceml.gif

pptm

icpptm.png

wsf

icwsf.gif

est

icest.gif

pptx

icpptx.png

xla

icxla.png

fwp

icfwp.gif

pps

icpps.png

xlam

icxlam.png

gif

icgif.gif

ppsdc

icppsdc.png

xls

icxls.png

hdp

ichdp.gif

ppsm

icppsm.png

xlsb

icxlsb.png

hlp

ichlp.gif

ppsx

icppsx.png

xlsm

icxlsm.png

hta

ichta.gif

psp

icpsp.gif

xlsx

icxlsx.png

htm

ichtm.gif

psd

icbmp.gif

xlt

icxlt.png

html

ichtm.gif

ptm

icptm.gif

xltb

icxltx.gif

htt

ichtt.gif

ptt

icptt.gif

xltm

icxltm.png

inf

icinf.gif

pub

icpub.gif

xltx

icxltx.png

ini

icini.gif

rdl

doc_sp16.gif

xml

icxml.gif

jfif

icjfif.gif

rsapplication

newreport_sp.gif

xps

icxps.gif

jpe

icjpe.gif

rsc

component_sp16.gif

xsd

icxsd.gif

jpeg

icjpeg.gif

rsd

dataset_sp16.gif

xsl

icxsl.gif

jpg

icjpg.gif

rsds

datasource.gif

xsn

icxsn.gif

js

icjs.gif

rtf

icrtf.gif

xslt

icxslt.gif

jse

icjse.gif

smdl

model_sp16.gif

zip

iczip.gif

log

iclog.gif

stp

icstp.gif

 

Hope this will help you to customize your SharePoint environment for all well known file types.

Regards,

Vikas Patel.

Page copy protected against web site content infringement by Copyscape

About the Author

Vikas413
Full Name: Vikas Patel
Member Level:
Member Status: Member
Member Since: 9/15/2010 7:44:35 AM
Country: India
Regards, Vikas Patel.
http://www.dotnetfunda.com

Login to vote for this post.

Comments or Responses

Login to post response

Comment using Facebook(Author doesn't get notification)