I have a similar case of two Content types that share the same Taxonomy vocabulary referenced, and the need to show all nodes of Content type B that are tagged with a certain term to show on the node type A that is also tagged with the same term.
I created EVA views display that lists nodes of type B, under Bundles chose Content type A, under Arguments chose token (Use tokens from the entity the view is attached to) and chose
[node:field-myvocabulary:tid]
for token replacement (I selected it from the list below the textfield).
Then under Contextual filters I added
Content: Has taxonomy term ID
and set it up like this:
When the filter value is NOT available Provide default value Load default filter from term page Load default filter from node page, that's good for related taxonomy blocks Limit terms by vocabulary (myvocabulary) Filter to items that share any term
- Provide default value Taxonomy term ID from URL
- Load default filter from term page
- Load default filter from node page, that's good for related taxonomy blocks
- Limit terms by vocabulary (myvocabulary)
- Filter to items that share any term
When the filter value IS available or a default is provided
Specify validation criteria
Taxonomy term:
(myvocabulary)
Filter value type:
Term ID
Transform dashes in URL to spaces in term name filter values
Action to take if filter value does not validate:
Display "Access denied" (this hasn't been triggered for me)
- Specify validation criteria
- Taxonomy term:
(myvocabulary) - Filter value type: Term ID
- Transform dashes in URL to spaces in term name filter values
- Action to take if filter value does not validate: Display "Access denied" (this hasn't been triggered for me)