Copied to clipboard

Flag this post as spam?

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


  • Marc Love (uSkinned.net) 338 posts 894 karma points
    Aug 07, 2019 @ 11:43
    Marc Love (uSkinned.net)
    0

    Umbraco 8: IContent methods missing

    In Umbraco 7 you could use IContent in the back office to find content both published and unpublished. A lot of the methods to do this are no longer available e.g. Ancestors, Children, Descendants etc.

    Any one know if there is a new way of doing this in V8?

    Cheers,

    Marc

  • Marc Love (uSkinned.net) 338 posts 894 karma points
    Aug 08, 2019 @ 14:16
    Marc Love (uSkinned.net)
    0

    Just asking again to see if anyone has experience working with IContent with V8.

    Cheers,

    Marc

  • Bo Jacobsen 393 posts 1652 karma points
    Aug 08, 2019 @ 19:29
    Bo Jacobsen
    0

    Hi Mark.

    Now you have to use GetPagedChildren(int parentId, long pageIndex, int PageSize, out long totalRecords) and GetPagedDescendants(int parentId, long pageIndex, int PageSize, out long totalRecords) and so on.

    IEnumerable<IContent> children = contentService.GetPagedChildren(-1, 0, 1000, out long totalRecords);
    
  • Marc Love (uSkinned.net) 338 posts 894 karma points
    Aug 09, 2019 @ 09:16
    Marc Love (uSkinned.net)
    0

    Hi Bo,

    Thanks for the info. Seems a bit of a step backwards, any ideas why they have removed all the helpful methods?

    Cheers,

    Marc

  • Gurumurthy 12 posts 81 karma points
    27 days ago
    Gurumurthy
    0

    Hi Mark,

    Do you got an solution in v8 to access Ancestors() from IContent ?

    if so, do kindly share the alternatives that to be used in v8

    Thanks,

    Gurumurthy J V

Please Sign in or register to post replies

Write your reply to:

Draft