Hey folks, I’m at a loss as to how to rewrite the query in programelement.yml “query: page.parent.parent.find(‘orte’).children” so that it works regardless of the directory it’s called from. I also can’t use “site” as the starting directory, since the homepage is generated dynamically and is always a year. the other years (2024, …) under content will be only archive.
Im happy for help!
personsection:
type: fields
fields:
ort:
label: Ort auswählen
empty: "Kein Ort ausgewählt"
type: pages
query: page.parent.parent.find('orte').children