Copied to clipboard

Flag this post as spam?

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


  • Michael Falch Madsen 70 posts 92 karma points
    Nov 04, 2010 @ 09:36
    Michael Falch Madsen
    0

    inline xslt get value from child?

    Im trying to retrive a single value from a child of currentPage in my template but can only get it to work if i use a macro and it seens a little overkill to create a macro for such a little thing

    <umbraco:Item runat="server" field="produktnummer" xslt="$currentPage/descendant-or-self::node/produktnummer" xsltDisableEscaping="true"/>

     

  • Lachlann 344 posts 626 karma points
    Nov 04, 2010 @ 12:48
    Lachlann
    0

    Hey,

     

    what kind of error are you getting or is it just returning nothing?

     

    Can you get it to return something even easier like $currentPage/@id?

     

    L

  • Lachlann 344 posts 626 karma points
    Nov 04, 2010 @ 13:02
    Lachlann
    0

    Wait, are you using the new XML schema? if so I think it should be:

    $currentPage/descendant-or-self::*/produktnummer

     

    L

Please Sign in or register to post replies

Write your reply to:

Draft