Cover by Dylan James

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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 ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required