I have a taxonomy vocabulary called "Sports" that lists out a number of sports terms (Football, Tennis, etc).

I have one content type called "Team". I have a "Sports" taxonomy term reference field set as I associate a sport to the team. The field is called field_sport.

I have another content type called "Fixture". It has a node reference to "Team". The field is called field_sport_team.

That is:

  • a Fixture has a Team.
  • a Team has a related Sport.


How can I create a view with a contextual filter based on a "Sports" term that returns all related "Fixture" given that the "Sports" term is associated to a "Team" node reference?

Been stuck over the past few days...

Thank you for your help in advance!

  • where do you want to display your view? On team page or on sports page? – Bernard Nandwa Aug 26 '13 at 14:19
  • Hi there. I would like to display it on sports page. – Jimbalaya Aug 27 '13 at 0:20

OK. I've solved it myself!

I had to set up a relationship with "Team".

Then I added in a "Content: Has taxonomy term ID" contextual filter. Within the settings there is a relationship option which I set to the one I set above.

Works as I expected!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.