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
Can anyone enlightne me as to why the following returns no result?
<umbraco:Item runat="server" xslt="$currentPage/ancestor-or-self::node [@level=1]/@nodeName" />
Because you don't have a 'field=' specified.
Even if you aren't using the field, you must specify it and the field must exist.
Try this...
<umbraco:Item field="pageName" runat="server" xslt="$currentPage/ancestor-or-self::node [@level=1]/@nodeName" />
cheers,doug.
Simon,
I don't think $currentPage is known in the context of the umbraco:Item. I'd try:
<umbraco:Item runat="server" xslt="umbraco.library:GetXmlNodeById({0})/ancestor-or-self::node [@level=1]/@nodeName" />
and see if that works.
Cheers,
/Dirk
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 To Get Level 1 Node Name
Can anyone enlightne me as to why the following returns no result?
Because you don't have a 'field=' specified.
Even if you aren't using the field, you must specify it and the field must exist.
Try this...
cheers,
doug.
Simon,
I don't think $currentPage is known in the context of the umbraco:Item. I'd try:
and see if that works.
Cheers,
/Dirk
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.