Copied to clipboard

Flag this post as spam?

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


  • Kevin Lawrence 183 posts 350 karma points
    Aug 19, 2013 @ 11:14
    Kevin Lawrence
    0

    6.1.3 - Descendants(int level) doesn't appear to work

    Hi all

    I noticed that Descendants for a dynamic node takes an integer inidicating the level of descendant, however this appears to be ignored, and I receive the same results no matter what I specify, here's my usage (from a Surface Controller):

    var parent = Umbraco.Content(contentId);
    var pages = parent.Descendants(level)
    .Take(25)
    .ToList();

    Before I raise an issue I'm just wondering if this is still a supported operation?

    Thanks

    Kev

  • Kevin Lawrence 183 posts 350 karma points
    Aug 19, 2013 @ 12:18
    Kevin Lawrence
    100

    Ok I think I misunderstood this function, it appears to be to return descendants up to a level, not equal.

Please Sign in or register to post replies

Write your reply to:

Draft