Drupal 8 basic part 7: Extended views configuration

let's repeat

When you create the views, on the first page you configure:

- What to display: users, nodes, comments etc.

- How to display: Page or block.

- Path to the page, title, pager, items per page, basic sort.

 

After that you can continue to configure the views, on the views edit page:

 

Basic views settings

Format

Grid, Html list, Table or Unformatted list. Let`s check how it will looks like on our test views:

Grid view format.

You can configure how many columns should has view list and Alignment: vertical or horizontal.

Grid view style Drupal 8 

HTML list format

HTML List view style Drupal 8 

Table format

Table view style Drupal 8 

Unformatted list format
Unformatted list view style Drupal 8

Fields

You can choose which fields should be displayed. Title, image, tags for example. You can display content author, date of creation etc. It's long list of availble fields.

Add new field to view 

Filter/sort criteria 

There are a lot of fields for sorting and filtering: fields values, date creation, author etc.

Add filter to view 

Page settings

You can setup the path of the page view and menu item for this view page.

Access: you can restrict access to this page for the users based on user role or user role permission. By default site has next roles: Anonymous user (not authorized user), Authenticated user and Administrator role. And site has list of permissions for each role. You can deny or allow access for each user based on their role and permissions for their role. You can check list of permissions on the next page /admin/people/permissions or use "People" menu item "Permissions" tab.

Header / Footer

You can put the content into the view footer or header.

No results behavior

What should happen if view is empty. You ca display message, display another content etc.

Pager 

How many items should be displayed, should  pager be displayed or not, additional pager configuration.

 

It was the most important view configuration.