I want to select all children of all entries that fulfil specified relation parameter.
I have tried this, but I think .isDescendantOf only supports single entry. Is this even possible?
{% set parents = craft.entries.section('training').level('1').relatedTo(relationParam) %}
{% set children= craft.entries.section('training').isDescendantOf(parents).eventDate('>= ' ~ now).order('startDate DESC') %}
I thought giving more background to this might help, as possibly an entirely new approach will be necessary. Consider this setup in Craft CMS
I have a 2 level structure, where top level is a big matrix describing an event and has quite a big classification section where multiple categories are selected. Then it's children are specific instances of that event with their own date and location.
I don't want to force my client to repeat categorization on each of the lvl2 entries since they've already done it on lvl1.
Can I select all lvl2 entries that have parents fulfilling specific relation param?