Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal 7 views filter by dynamic taxonomy term

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 enter image description here

like image 272
mreq Avatar asked May 29 '26 18:05

mreq


1 Answers

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.

like image 111
bkildow Avatar answered Jun 01 '26 21:06

bkildow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!