Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have two content types:

  • Games, which have a list of Developers that worked on it.
  • Developers, which don't store the games they've worked on.

I need:

  • a view that lists Developers that you can filter by Game, but "Exposed Filters" only let me filter on fields on the Developer, so I'm not sure how to do this.
  • to be able to add to a list of people that worked on the Game when editing/creating, rather than have to update each Developer's list of Games they worked on.

How can I make an exposed filter which selects Developers where the Game has that Developer?

share|improve this question
add comment

2 Answers

Nikit's response about using Relationships in the view is correct, but it's not clear you've have already set up the correct 'node references' between Games and Developers.

So, rather than maintain your own lists of Developers for a Game, you need to use the References module to add a field that allows 'connections' between these content types. You might also want the Corresponding node references module to auto-update the reference field on a Developer when you edit a Game, and vice versa.

From here you can properly relate Games and Developers, so Views can use these relationships and allow you access the associated Games from your Developers view.

share|improve this answer
add comment

You should use Relationships in Views, and attach second content as required.

share|improve this answer
    
I'm not seeing how this would work. Can you be more specific? –  Joren Sep 30 '11 at 17:37
1  
I can point to some videos that describe using relationships: vimeo.com/22100751 drewish.com/node/127 drupalove.com/drupal-video/using-drupals-views-relationships –  Nikit Oct 1 '11 at 2:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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