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
Hi
I want to reach the top level.ie content node.I have used Model.AncestorOrSelf(-1) but showing errors. How can i reach the top level. I want to do like this
top= Model.AncestorOrSelf(-1)
foreach(var item in top.DescendantsOrSelf())
Please tell me to find solution.
/sob
Have you looked at the sample navigation and sitemap scripts?
You should be able to use:
var top = Library.NodeById(-1);
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
Content node top
Hi
I want to reach the top level.ie content node.I have used Model.AncestorOrSelf(-1) but showing errors. How can i reach the top level. I want to do like this
top= Model.AncestorOrSelf(-1)
foreach(var item in top.DescendantsOrSelf())
Please tell me to find solution.
/sob
Have you looked at the sample navigation and sitemap scripts?
You should be able to 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.