I have a set of Drupal magazine-related content types predefined in the following relationships:
- Story: Has a title, body, author, required node reference to an Issue, optional node reference to an Illustration.
- Article: Has a title, body, and required node reference to an Issue.
- Illustration: Has an image and a Contributor profile.
- Issue: Has a title and date.
- Contributor profile: Has a first name and last name.
What I'm trying to get is a listing of issues with an illustration from one of its stories showing, if there is one. If there aren't stories (there may be only articles), or aren't any stories with illustrations, I want to just list the issue's title.
So I'm looking for output like the following:
[StoryImage] December 2010
November 2010
[StoryImage] October 2010
[StoryImage] September 2010
etc.
I'm not concerned about styling or markup at this point--I can finagle that.
Here's the View setup I have so far that isn't working:
- Filter: Node Type = Story, Article
- Relationship:
- Content: Issue
- Content: Illustration
- Content: Contributor, using the Illustration relationship
- Fields:
- Content: Image, using the Illustration relationship
- Node: Title, using the Issue relationship
- Sort criteria:
- Issue date, descending.
- Contributor last name, descending.
What I get (as I'd expect) is a listing of each issue as many times as there are articles/stories in the issue. So if there are 3 items in the Dec 2010 issue and 2 in the Nov issue, here's what I get:
[StoryImage] December 2010
December 2010
December 2010
November 2010
November 2010
What I really want is the first result from each issue only. Is that possible, and if so, what am I missing?