Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sob 11 posts 41 karma points
    Sep 22, 2012 @ 12:17
    Sob
    0

    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

  • Matthew 93 posts 153 karma points
    Sep 22, 2012 @ 18:28
    Matthew
    0

    Have you looked at the sample navigation and sitemap scripts?

  • Dan Diplo 1505 posts 5911 karma points MVP 4x c-trib
    Sep 24, 2012 @ 13:11
    Dan Diplo
    0

    You should be able to use:

    var top = Library.NodeById(-1);
  • 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.

Please Sign in or register to post replies