Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 859 posts 2052 karma points
    Jan 21, 2015 @ 15:43
    Matt Taylor
    0

    Descendants(int level)

    I'm trying to find some documentation on how IPublishedContent Descendants(int level) is supposed to work.

    If Content is the currect node I thought I could use:

    Content.Descendants<Package>(2)

    to return any nodes of the document type 'Package' up to 2 levels below the current one.

    However I'm using Umbraco v7.2 and I'm just getting a list of all the 'Package' nodes no matter what I set the level to.

    Does anyone know how it is supposed to work?

    Regards, Matt

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies