I am creating a content query web part that pulls in a 'top news' item from my 'news' sub site. The title and teaser text are coming in fine, and I am finding it difficult to get a link to the article working.
My style sheet looks like so:
<xsl:template match="Row">
<h1><xsl:value-of select="@Title" /></h1>
<p><xsl:value-of select="@Teaser" /></p>
<a>
<xsl:attribute name="href">
<xsl:value-of select="@FileRef" />
</xsl:attribute>
<img id="kuFullStory" src="_layouts/Intranet/Images/full-story.png" />
</a>
The issue that I have is that the image (full-story.png) add in a /Pages reference, which breaks the URL, so by that I mean:
ht tp://intranet/pages/news/pages/article.aspx
I want to remove the 'pages' reference, but am not sure how to do it, would anybody have experienced similar??
I want the URL to be:
ht tp://intranet/news/pages/article.aspx, not ht tp://intranet/pages/news/pages/article.aspx
Any help would be gratefully received! :)