Add .csv image to SharePoint 2010

As I was researching for a way to do this I ran across several blogs that told me how to add an image for a .csv icon to show up under SharePoint 2010.

Here’s one that I really liked:

http://www.sharepointedutech.com/2010/02/17/changing-file-associations-icons-in-sharepoint-2010/

(Dave Coleman is awesome BTW)

Which the process here can pretty much be copied with any file extension type you want to connect with any other icon. Dave does a great job explaining this.

So I was originally looking for a way to map the .csv icon here to map to the icon that normal shows up when you save a .csv under excel.

I found out (to my surprise) that if you look under the images folder at:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES

There actually is an image of a .csv (csv16.gif) there, it’s just not associated with anything.

So in order to hook this bad boy up to SharePoint we need to go into:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML

and add:

<Mapping Key="csv" Value="csv16.gif" OpenControl=""/>

under the heading <ByExtension> and directly under the entry:

<Mapping Key="css" Value="iccss.gif" OpenControl=""/>

Then do an IIS Reset and upload a .csv file to test it out and see if it works. I have confirmed that this file does exist for both Foundations and SharePoint Server 2010.

Enjoy and happy SharePointing

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s