Drupal 7 views filter by dynamic taxonomy term

有些话、适合烂在心里 提交于 2019-12-21 06:22:14

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/7362360/drupal-7-views-filter-by-dynamic-taxonomy-term

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!