Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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! :)

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.