Basically the root may contain multiple levels of folders and images.
What I am trying to do is fetch all the Media content of Type "Image" (no matter where they are placed in the tree) and filter them based on a certain criteria.
How can I query the MediaAtRoot() to fetch all the "leaf" images based on a certain criteria?
This is what I tried but this returns the folder of the image, not the image itself:
Querying Media
Hello
My Media tree is structured as follows:
Basically the root may contain multiple levels of folders and images.
What I am trying to do is fetch all the Media content of Type "Image" (no matter where they are placed in the tree) and filter them based on a certain criteria.
How can I query the MediaAtRoot() to fetch all the "leaf" images based on a certain criteria?
This is what I tried but this returns the folder of the image, not the image itself:
This is the new for me. Please someone tell me more about that.
I managed to solve this using
DescendantsOrSelf
is working on a reply...