Drupal 7视图通过动态分类术语过滤 [英] Drupal 7 views filter by dynamic taxonomy term

查看:305
本文介绍了Drupal 7视图通过动态分类术语过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几页(服务),每个都有自己的分类术语。



我想添加一个视图到底部。它应该包含与主节点(服务)相同的所有节点(引用)。



可以通过视图完成吗?



阅读有关的内容,并尝试上下文过滤器,没有成功。图像在下面

解决方案

我认为你在正确的轨道上。尝试将验证器更改为术语ID而不是术语名称。



我创建了一个具有您设置的块视图(使用Term Id作为验证器),并在我的节点页面上启用了该视图,这似乎正常工作。 / p>

I have a few pages (services), each with it's own taxonomy term.

I would like to add a view to the bottom. It should contain all nodes (references) with the same term as the main node (service).

Could it be done by views?

Read something about and tried contextual filter with no success. Image is bellow

解决方案

I think you are on the right track. Try changing your validator to "Term Id" instead of "Term Name".

I created a block view with the settings you have (with "Term Id" as the validator) and enabled it on my node pages, and this seemed to work.

这篇关于Drupal 7视图通过动态分类术语过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆