Building complex views using relationships

When creating a new View, there are many fields available that can be added to the display. However, where the content type being used in the view has an intrinsic relationship to another content type, a relationship can be added to the View, which allows the View to make use of fields from the related content type. In this recipe we will create a View with a relationship to the User content type, and we will utilize this relationship so that we can output a list of news articles, with the author's profile picture in the display, as illustrated in the following screenshot:

Building complex views using relationships

Getting ready

To complete this ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.