Creating a Post Listing view

So now that we have a new listing display for our post content type, you may be asking how do we actually use it? Just like any content that we want to aggregate, we will start with creating a Drupal view. But unlike previous views that we created, which used fields, we will be creating a view that uses the Content Types display mode.

To get started, we will need to navigate to /admin/structure/views and click on the Add new view button. From the Views admin screen, we will add the following information:

  • VIEW BASIC INFORMATION:
    1. View name: Post Listing.
    2. Check the Description box.
    3. Description: A listing of all Posts.
  • VIEW SETTINGS: Show: Content of type: Post sorted by: Newest first
  • BLOCK SETTINGS:
    1. Check the Create a block

Get Drupal 8: Enterprise Web Development 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.