Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • RoelAlblas 50 posts 61 karma points
    Feb 02, 2010 @ 20:27
    RoelAlblas
    0

    full url of current node

    Hi,

    I've got the following xslt

    <xsl:value-of select="umbraco.library:NiceUrl(@id)" />

    the output is

    /web!merge©.aspx

    I like to have it like

    www.domainname/web!merge©.aspx

    Any help would be appreciated! Thanks!

    Roel

  • Stephan Lonntorp 195 posts 212 karma points
    Feb 02, 2010 @ 20:29
    Stephan Lonntorp
    0

    you can use

    <xsl:value-of select="umbraco.library:RequestServerVariables('HTTP_HOST')" /><xsl:value-of select="umbraco.library:NiceUrl(@id)" />
  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Feb 02, 2010 @ 20:32
    Sebastiaan Janssen
    0

    Stephan is right, I also wanted http:// in front of the url, so I create this variable when I want to use the full URL

      <xsl:variable name="urlPrefix">
        <xsl:text>http://</xsl:text>;
        <xsl:value-of select="umbraco.library:RequestServerVariables('HTTP_HOST')" />
      </xsl:variable>

    Then you can use: 

    <xsl:value-of select="$urlPrefix" /><xsl:value-of select="umbraco.library:NiceUrl(@id)" />
Please Sign in or register to post replies

Write your reply to:

Draft