Hi
I want to link the rollup image (the thumbnail) on content query web part. So that the item title will link to item itself but the image will have a separate link. Is this doable, if so how?
Using the information in this blog :http://www.sharepointblog.co.uk/2012/05/fields-to-display-in-content-query-web-part/
I tried to add a custom field and called it 'ImageLink', downloaded and modified the cqwp
and then went to the XSLT, added the ImageLink variable to the style,
<xsl:value-of select="@Imagelink"></xsl:value-of>
and linked the image:
<a href="{@Imagelink}"> <img src="{$SafeImageUrl}" title="{@ImageUrlAltText}">
<xsl:if test="$ImageWidth != ''">
<xsl:attribute name="width">
<xsl:value-of select="$ImageWidth" />
</xsl:attribute>
</xsl:if>
<xsl:if test="$ImageHeight != ''">
<xsl:attribute name="height">
<xsl:value-of select="$ImageHeight" />
</xsl:attribute>
</xsl:if>
</img> </a>
but all I can see is a string link, and the rollup image does not show up.
Am I getting it all wrong? How can I do that?
Thanks
ceren