I am working on a Bolt template which returns different information about the listing and I have problems when trying to use setcontent filtering. I use URL queries to toggle the search, like so:
{% if app.request.query.get('onlyPaid') == 'true' %}
{% setcontent records = 'internships' where { is_paid: 1} limit 6 %}
{% endif %}
This filter works great because i have an is_paid field described in my contenttypes.yml
The question is, how do I apply the similar filter to the selected value of 'select' field?
city:
type: select
label: City
values: regions/{title}
sort: title
autocomplete: true
required: true
However this is not a perfect/straight solution, currently works by using "%like%" operator, as you can see below:
The string 'public' is the selected value of the SELECT's field.
The definition of the field in the contenttypes.yaml is this: