Copied to clipboard

Flag this post as spam?

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


  • jake williamson 207 posts 873 karma points
    Sep 30, 2014 @ 15:28
    jake williamson
    0

    GetDescendants doesn't return all descendants?!

    hey out there,

    this is an interesting one - 'GetDescendants' doesn't return all descendants?!

    my code runs as:

    var contentService = ApplicationContext.Current.Services.ContentService;
    var children = contentService.GetDescendants(MyId).ToList();
    return children.Any() ? children.First() : null;
    

    pretty easy, just trying to get all decendants by a node id (replace 'MyId').

    but of the 200 odd nodes i know for a fact appear under the 'MyId' node, i only ever get 150 back. it's always the same 150 so it's not random.

    i'm guessing the content service hits up the database, is there any reason my nodes wouldn't be coming back?!

    cheers,

    jake

Please Sign in or register to post replies

Write your reply to:

Draft