April 18, 2011

// // 2 comments

Display image for Hyperlink in Sharepoint list


On a specific site page or page where you have the view

1. Click on the link in the view to follow the hyperlink ( > appears)










2. Click on “Hyperlink options










3.Click OK





4. It changes to the actual URL



5. In the code view, the source code is now

</xsl:when>
                            <xsl:otherwise>
              <a href="{$url}"><xsl:value-of select="$url" /><xsl:value-of select="$desc" /></a>
            </xsl:otherwise>

6.Replace the <a href="{$url}"><xsl:value-of select="$url" /><xsl:value-of select="$desc" /></a>

with

<a href="{$url}"><img alt=" Status" src="../SiteAssets/icons/tickmark.png" /></a>






2 comments:

  1. This saved me so much time. I had just about forgotten about editing list views from SharePoint designer.

    Thanks!

    ReplyDelete
  2. Works great, thanks!
    However, if I want to have a diffierent image for each hyperlink, how would I achieve this? I was thinking of adding another column of images and supplying that as the src for img, but I don't know exactly how to do that/if it's even possible.

    Cleverlegs

    ReplyDelete