Copied to clipboard

Flag this post as spam?

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


  • Marc 2 posts 22 karma points
    Oct 16, 2012 @ 12:12
    Marc
    0

    inline xslt on umbraco:item does not works

    I'm trying to render in a master the url of the current node with inline xslt but it does not displays anything.

    I'm using version 4.9

    This is what I try to do:

    <umbraco:Item field="pageID" runat="server" xslt="umbraco.library:NiceUrl({0})" />

    After reading several posts It seems it could be possible but maybe I'm doing something wrong...

  • Ed Parry 64 posts 252 karma points c-trib
    Oct 16, 2012 @ 15:32
    Ed Parry
    0

    <umbraco:Item field="pageID" runat="server" xslt="umbraco.library:NiceUrl($currentPage/../@id"/>

    This should show the URL of the current node. If you want the domain to display, you will need to ensure that "useDomainPrefixes" is set to "true" in the umbracoSettings.config file.

    Hope that helps.

  • Marc 2 posts 22 karma points
    Oct 17, 2012 @ 10:03
    Marc
    0

    Yes, it is what I expected, but when I use the xslt attribute it doesn't renders anything. Without it, the page id it's returned.

  • da3246 6 posts 26 karma points
    Dec 19, 2012 @ 13:15
    da3246
    0

    Since upgrading from version 4.8.0 to 4.9.1, I'm having the same issue.

    Nothing is returned when using xslt="umbraco.library:NiceUrl({0})" 

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Dec 19, 2012 @ 23:03
    Chriztian Steinmeier
    0

    Hi all,

    This was a bug, see here (there's a patched DLL in the comments): http://issues.umbraco.org/issue/U4-776

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft