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
Hello probably really simple question, could someone tell me how to get the parent url of the current node in context using NiceUrl?
Hi Ian,
Just pass the parent's id into the function:
<xsl:value-of select="{umbraco.library:NiceUrl($currentPage/../@id)}" />
/Chriztian
Thanks
Hi, thought I'd mention that it can also be done directly on a template with:
<%= umbraco.library.NiceUrl(Node.GetCurrent().Parent.Id) %>
edit: oops just noticed this is in the XSLT forum - I can't delete this...
You can use:
<xsl:value-of select="{umbraco.library:NiceUrl($currentPage/@parentID)}" />
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
getting parent url using niceUrl
Hello probably really simple question, could someone tell me how to get the parent url of the current node in context using NiceUrl?
Hi Ian,
Just pass the parent's id into the function:
/Chriztian
Thanks
Hi, thought I'd mention that it can also be done directly on a template with:
<%= umbraco.library.NiceUrl(Node.GetCurrent().Parent.Id) %>
edit: oops just noticed this is in the XSLT forum - I can't delete this...
You can use:
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.