使用一个分类术语进行 Drupal 视图过滤并使用参数添加另一个过滤器
好吧,所以我可能特别迟钝。我正在 drupal 列表汽车中构建一个 2 列显示,这是内容类型的产品。我们有 2 个分类词汇:品牌和颜色。一个块将显示橙色,另一块将显示蓝色。我试图将参数(例如福特)传递到视图,以便它只显示橙色福特或蓝色福特(一个块视图显示橙色,一个块视图显示蓝色),但是一旦我传递参数没有返回任何数据。检查数据,我有匹配的内容。有什么想法吗?
Ok so I'm probably being exceptionally retarded.. I'm building a 2-column display in drupal listing cars, which are content type product. We have 2 taxonomy vocabularies, brand and colour. One block will display colour orange, and the other will display colour blue. I'm trying to pass the argument (eg Ford) through to the view so that it'll display only Orange fords or Blue fords (one block view does orange, one block view does blue) but as soon as I pass an argument through no data is returned. Checking the data, I have content that will match. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建两个显示器,为一个显示器
添加一个过滤器:content-color = Orange
为另一个显示器添加一个过滤器:content-color = Blue
为两个显示器添加
> 一个参数:taxonomy-termid = term_id_for_Ford
它应该可以工作。如果这不起作用,请向我们显示导出代码,也许会有帮助。
Create two displays, for one display
add a filter : content-color = Orange
for the other displayadd a filter : content-color = Blue
For both the displays add
an argument : taxonomy-termid = term_id_for_Ford
and it should work.If this doesn't work show us the export code, may be that will help.