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
I may be wrong, but I'm not sure if $currentPage is available within the context of inline XSLT, you may want to use something like the following instead
NB: As you are using the old scheme in your example, I have assumed that your are using Umbraco 4.0.x, if this is not the case, let me know and I'll give a 4.5 scheme example.
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"/>
HI Michael,
I may be wrong, but I'm not sure if $currentPage is available within the context of inline XSLT, you may want to use something like the following instead
NB: As you are using the old scheme in your example, I have assumed that your are using Umbraco 4.0.x, if this is not the case, let me know and I'll give a 4.5 scheme example.
Matt
is working on a reply...