问题描述
我正在开发一个 Bolt 模板,它返回有关列表的不同信息,但在尝试使用 setcontent 过滤时遇到了问题。我使用 URL 查询来切换搜索,如下所示:
{% if app.request.query.get('onlyPaid') == 'true' %}
{% setcontent records = 'internships' where { is_paid: 1} limit 6 %}
{% endif %}
这个过滤器效果很好,因为我的 contenttypes.yml 中有一个 is_paid 字段
问题是,如何将类似的过滤器应用于“select”字段的选定值?
city:
type: select
label: City
values: regions/{title}
sort: title
autocomplete: true
required: true
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)