I’m trying to add a field of type page, which should include my pages of type product or project.
I already tried a couple of things like:
First try
references:
label: References
type: pages
multiple: true
query: site.index.template(['project', 'capability']).visible()
Second try:
references:
label: References
type: pages
multiple: true
query: site.index.template('in', ['project', 'product']).visible()
Third Try:
references:
label: References
type: pages
multiple: true
query: site.index.filterBy('template', 'in', ['project', 'product']).visible()
Fourth Try:
references:
label: References
type: pages
multiple: true
query: site.index.filterBy(['project', 'product']).visible()
Fifth try:
references:
label: References
type: pages
multiple: true
query: site.index.filterBy('template', 'project').filterBy('template', 'product').visible()
And a couple more similar to those above does somebody know how to do it?