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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...