working on a legacy Umbraco 4 site for the first time and I'm already missing v7!
Basically I need to be able to get all descendants of a node where the document type = 'Product'.
This would be fairly straightforward if I was working with Nodes but I need to use Documents as I need to consider both published and unpublished items and the Document entity has the 'Published' flag.
Get descendant documents of type [4.11.10]
Hi guys,
working on a legacy Umbraco 4 site for the first time and I'm already missing v7!
Basically I need to be able to get all descendants of a node where the document type = 'Product'.
This would be fairly straightforward if I was working with Nodes but I need to use Documents as I need to consider both published and unpublished items and the Document entity has the 'Published' flag.
Can anyone point me in the right direction?
ended up finding the solution on this stackoverflow thread: https://stackoverflow.com/questions/11391823/checking-each-node-in-a-tree-structure-umbraco-improving-efficiency/11398210#11398210
is working on a reply...