When a list item has an attachment, SharePoint automatically renders a paperclip image for that particular row, which indicates that the item has an attachment. Is there any way to change the image that is rendered?
The site is in a shared hosting environment, so I can’t simply replace the image on the file system. Also, there are other lists that are part of the same site that should use the default image.
Is there any way to change the image that is rendered for items with an attachment on an individual list basis?
EDIT: Following is the HTML that is rendered:
<td class='ms-vb2'> <img align='absbottom' src='http://devsandbox/_layouts/images/attach.gif' alt='Attachment'/> </td>
The only real way you’ll be able to do this is to use jQuery (or some other javascript library). You’ll need to locate the elements you want to update on the page and change the URL’s
My jQuery may be a touch wrong but that should be near enough to give you an idea of what to do
Edit – The best way to have this down would be via a custom WebPart which renders the JavaScript. This way it can easily be dropped into any page you want