Replies: 2 comments
-
Related: #15534 |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 for this feature. Example use case: we have a data model for storing a book’s table of contents, where a book contains multiple chapters and these chapters are grouped in sub-sections. The sub-sections can also be grouped together inside a parent sub-section, infinitely. So we end up with a structure such as: Book One (root entry):
Note that Books and Chapters are both separate sections. In order to query all chapters of a book, would be great to write |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TLDR: There are times when it would be nice to get deeply nested entries, without needing to go through all levels:
craft.entries().field('nestedMatrixField').rootOwner(entry).all()
Some more information on my setup:
On a company's page, I am listing all of their presentations. However, I want to then filter those based on fields on Events. For example, from Company A's page, I want to see all of their presentations made at Events on a Saturday. That's where I thought this would be perfect.
Beta Was this translation helpful? Give feedback.
All reactions