Copied to clipboard

Flag this post as spam?

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


  • Nikolas van Etten 202 posts 162 karma points
    Jan 16, 2012 @ 08:47
    Nikolas van Etten
    0

    Inline XSLT: Getting server variables

    Any idea why this does not work?

    <umbraco:Item runat="server" xslt="umbraco.library:RequestServerVariables('URL')" />

    Need to display the current URL in a custom 404 page and wanted to avoid creating a complete macro for it...


  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Jan 16, 2012 @ 09:01
    Chriztian Steinmeier
    102

    Hi Nikolas,

    Just add an arbitrary field from the page (e.g., pageID):

    <umbraco:Item field="pageID" xslt="umbraco.library:RequestServerVariables('URL')" runat="server" />

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft