Hi,
I would like to create two fields: one in which you can pick another page, and another one in which you can choose a file from the page that is chosen in the first field.
I implemented the first one using a pages field:
featuredPage:
type: pages
query: site.index.filterBy('template', 'in', ['event']).upcoming
max: 1
.upcoming
is a custom page method that filters the pages (in this case representing events) based on the condition that the date in a date field is in the future. all this is tested and works fine.
Now for the second field I can’t figure out the query, or if this is even possible. Any ideas?
Thanks in advance,
Till