Managing popular versus recent content

The second block of content that we need to create for our Blog listing page is a little more complex to build and will provide us with experience of building and combining multiple views into a single view.

Creating our recent posts block

Our recent posts block will be a view that contains a listing of three of the most recent posts added to our site. We will take advantage of the Teaser display mode of our Post content type to present our view block.

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: Recent Posts.
    2. Check the Description box.
    3. Description:

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.