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) 445 posts 1787 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) 445 posts 1787 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 604 posts 2402 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) 445 posts 1787 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 54 posts 127 karma points
    Sep 25, 2020 @ 10:10
    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

  • Mortaza Nourestani 2 posts 72 karma points
    Oct 27, 2020 @ 02:12
    Mortaza Nourestani
    0

    This is really counterproductive for removing calls and not even replacing it with better one.

    looks amateur and nonprofessional

Please Sign in or register to post replies

Write your reply to:

Draft