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 873 posts 2086 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

Please Sign in or register to post replies

Write your reply to:

Draft