Customized lists of contents
When we first install Drupal, it provides us with an initial View for the homepage that lists all content in reverse chronological order. In most cases, this is not sufficient to expose all the content on a site, so we will end up creating several other Views.
Let's begin by creating a basic list of articles.
Start by navigating to /admin/structure/views/add
or by selecting Structure-Views
from the Admin toolbar and then clicking the button labeled Add new view
.
The most common use case is to have a View that outputs content, that is, nodes, of a particular type. However, you can create Views on any type of entity or other table that is exposed to Views. This includes users and taxonomy terms, but also files, comments, blocks, node revisions, and log entries.
We are going to start with a basic View of contents showing a list of articles. Enter the machine name of articles and select a content type of Article
, and then click the button labeled Save and edit
.
You will...