Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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"/>
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
Wait, are you using the new XML schema? if so I think it should be:
$currentPage/descendant-or-self::*/produktnummer
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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"/>
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
Wait, are you using the new XML schema? if so I think it should be:
$currentPage/descendant-or-self::*/produktnummer
L
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.