I've set up a view of related content that has a block display and 2 contextual filters:

  • "Content: ID" with "Exclude"
  • "Content: Has taxonomy term ID" with "Load default filter from node page, that's good for related taxonomy blocks".

The block is configured to display only on nodes of a certain content type.

Now, I only want to show the view/block on nodes where a field has a certain value. How?

My question is similar to this one. But the accepted answer — adding the field under Filter Criteria — doesn't work here, because the filter applies to the related nodes rather than the current node.

Is there a way to solve this just by modifying the view? (It seems like the sort of thing a view could do.) Or is it necessary to use a contrib module — Context or Entity Field Condition — to hide the block?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.