Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
is working on a reply...