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 1554 posts 6205 karma points MVP 6x c-trib
    Sep 24, 2012 @ 13:11
    Dan Diplo
    0

    You should be able to use:

    var top = Library.NodeById(-1);
Please Sign in or register to post replies

Write your reply to:

Draft