Drupal 7 with relevant Modules: Views & Entity Reference
I have a view that simply shows the "Teaser" display type of two different Content Type records, we'll say they are Article and Page. This is built into a Views Page.
My Article CT has some simple fields that are shown.
My Page CT has a few fields, but also an Entity Reference field (unlimited entries). The Entity Reference field points to other Article nodes.
My View then, as expected, shows each record's Teaser display and of course when a Page record references another Article record, that Article's teaser is shown as part of the Page teaser.
This is great. The problem is, I do not want to show duplicate Article teasers. That means, if a Page references an Article, I don't want to show that same Article teaser as an individual listing.
Think of it like this, I have these Articles:
- Article 1
- Article 2
- Article 3
And I have these Pages:
- Page 4
- Page 5
- Page 6
Page 4 points -> at Article 1 and Article 2
Page 6 points -> at Article 2
TL;DR
Right now the view would show something like:
- Article 1
- Article 2
- Page 4
- Article 1
- Article 2
- Page 5
- Page 6
- Article 2
- Article 3
What I want is this:
- Page 4
- Article 1
- Article 2
- Page 5
- Page 6
- Article 2
- Article 3
Here's a Diagram: https://i.stack.imgur.com/2joEr.jpg