Summary

The first relationship added to the Available Property Listing view was for the neighborhood taxonomy. In previous versions of Drupal, taxonomies were handled differently, but in Drupal 8, they are just entity references. Extending the taxonomy case to entity types defined in custom content types, the property listing was enhanced to include the listing of realtor(s) names and phone numbers, which are stored in a Realtor content type, separate from the Property content type being displayed. That showed that even though the Title field was used twice in the display, adding the relationship to the second use displayed realtor names instead of property addresses. Finally, an attached display showed how to use a reverse relationship to show ...

Get Mastering Drupal 8 Views now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.