FilterBy in select field in blueprint doesn’t work for me in this case:
I want to display a list of hotels (from an other template hotel) which have a propertie active. It gives me all the hotels, also the hotels who does not have the togglefield active.
hotel:
label: Select Hotel
type: select
width: 1/2
options: query
query:
fetch: site.index.template("hotel").filterBy("togglehotel","true")
text: "{{ page.title }}"
value: "{{ page.autoid }}"
togglefield in blueprint template hotel
togglehotel:
label: Hotel
type: toggle
width: 1/3
default: false