Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Having a bit more info in the question would help - specifically:</p> <ol> <li>What version of Views and Drupal? (I'm assuming latest - Views 3 and Drupal 7)</li> <li>What exactly results would you like to see and what are you filtering on? (Screenshot of your View would hopefully do the trick)</li> </ol> <p>I think I might be able to answer anyway - here are three key things that could help:</p> <p><strong>Relationship Basics</strong></p> <p>In Views setup a <em>Relationship</em> and then use that relationship when you create fields. In the image below I have a slideshow node that has node references to slides. So I've setup a relationship from the Slideshow to the Slide. Then that relationship in turn is used to pull the fields from the Slide instead of the Slideshow under <em>Fields</em>.</p> <p><img src="https://i.stack.imgur.com/obSYX.png" alt="Basic Views relationship screenshot"></p> <p><strong>Views Distinct</strong></p> <p>If you're only issue is that you're getting duplicate results, sometimes an easy solution is turning on <em>Distinct</em> for the query. In the View, under Advanced click on <em>Query settings</em> and check <em>Distinct</em>.</p> <p><img src="https://i.stack.imgur.com/6ETXg.png" alt="Turn on Distinct in Views"></p> <p><strong>Reverse Relationships</strong></p> <p>It sounds like you might actually need to setup a reverse relationship in this case if you're loading the artist node and then trying to get the node references back to all of that artist's albums. You can see each node reference has a corresponding entry when you're adding a relationship to pick the <em>reverse</em> of that node reference.</p> <p><img src="https://i.stack.imgur.com/F06l1.png" alt="Reverse node reference relationship field in Views"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload