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
which one do you use and why? why are there 2?
thanks
Hi Andrew,
If you are using Razor this is the way to go for
foreach(dynamic Node in page.Children){<a href="@Node.Url ">@Node.Name</a>
}
and in XSLT
<a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="@nodeName"/></a>
Hope this is what you were looking for
//fuji
hi Fuji
i don't really use dynamic in razor anymore, i use the node factory directly (ie. INode).
but this has NiceUrl and Url. Has NiceUrl been deprecated in favour of Url?
andrew
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Node.Url vs Node.NiceUrl
which one do you use and why? why are there 2?
thanks
Hi Andrew,
If you are using Razor this is the way to go for
and in XSLT
Hope this is what you were looking for
//fuji
hi Fuji
i don't really use dynamic in razor anymore, i use the node factory directly (ie. INode).
but this has NiceUrl and Url. Has NiceUrl been deprecated in favour of Url?
thanks
andrew
is working on a reply...