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:
To complete this recipe you will need to have first completed the first recipe in this chapter, Creating a news listing view. We will be making use of the News article content type. We will also be making use of the user profile picture field, and upload a profile picture for at least one of the user accounts that has authored a News article node.
To upload a profile...