Full introduction to Views in Drupal 8
5.0 (1 rating)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1 student enrolled
Wishlisted Wishlist

Please confirm that you want to add Full introduction to Views in Drupal 8 to your Wishlist.

Add to Wishlist

Full introduction to Views in Drupal 8

unleash the full power of Views in Drupal 8
5.0 (1 rating)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1 student enrolled
Created by Nikolay Borisov
Last updated 8/2017
Curiosity Sale
Current price: $10 Original price: $20 Discount: 50% off
30-Day Money-Back Guarantee
  • 2.5 hours on-demand video
  • 1 Article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • understand waht the Views module does
  • be able to create lists of any content that you have in your Drupal 8 system
  • be able to change any of the admin content pages - by adding filters, fields sorts etc.
  • be comfortable with the Views user interface
  • create new pages with content
  • create blocks with content
View Curriculum
  • You should be able to use a computer at a basic level.

With Views are built all the lists of content in the default Drupal 8 installation. The front page list, the admin content overview page, all the taxonomy term, user lists etc.

Knowing how to use Views means not only that you can add bells and whistles to those pages, to make them look as you wish but also that you can create complete new pages, blocks with content, featured articles lists and much more.

In Drupal 8 the Views module is already in core. That means that it is no longer just the coolest contributed Drupal module, but is part of the whole must-know-how of Drupal. 

In this course you will learn how to use the Views in order to edit the existing lists inside of a Drupal web site and also how to present new lists with your content.

We will go thought all the main tools and settings of the Views interface and I will show you as much examples as possible right away. 

Who is the target audience?
  • newbies to Drupal 8 that want to learn Views
  • Drupal 7 users that want to catch up with the Views module in Drupal 8
  • people that have a Drupal 8 website and want to be able to change all the lists on their page
  • owners of Drupal 8 website that want to create new lists of content
  • new people to Drupal 8 that want to learn how to modify the lists of content on their websites
Students Who Viewed This Course Also Viewed
Curriculum For This Course
32 Lectures
1 Lecture 00:50

- PHP Drupal Developer with more than 7 years of experience
- I love to teach Drupal

The course:  
- What is Views and how to work with it’s interface
- How to edit the default views that come out of the box with Drupal
- How to create new Views
- covering the basics and some advanced topics
- as much examples as possible

Preview 00:50
Preparing our working environment
2 Lectures 10:39
  • Installing Acquia Dev Desktop

Acquia Dev Desktop contains

  • Apache

  • MySQL

  • PHP

And enables us to install Drupal with several clicks

Preview 04:15

  • Install Drupal locally

  • Download the Devel module

  • Activate the Devel Generate module

  • Growing some content using the Devel generate module
Installing Drupal
Basic Views
17 Lectures 01:17:46
  • Interface for building lists of content

  • a query builder

  • a tool with which you may create dynamic listings

  • Documentation version:

The Views module allows administrators and site designers to create, manage, and display lists of content.  Each list managed by the Views module is known as a view, and the output of a view is known as a display.

You need Views if

  • You like the default front page view, but you find you want to sort it differently.

  • You want to add column to the Content overview page

  • You want to add a filter to the Content overview page

  • You want a way to display a block with the 5 most recent posts of some particular type.

  • You want to create a new page with a list of some content

  • You want to create some list with users, either as a block or as a page

Preview 01:27

Lets see some examples to gain a better idea about what Views is

  • Front page

  • Admin Content page

  • Admin People page

  • Taxonomies Overview pages

We have a list of all the Views under Structure > Views

  • that’s the Views UI

  • here we can edit the existing ones and later add new

you may edit their look and structure as you like …

Default views, lets check some existing Views

  • Lets see what are we actually fetching ?

  • What is an Entity

      - building blocks, having unified structure

      - fieldable

  • Example entities are:

     - Nodes

     - Users

     - Taxonomy terms, etc

  •    Let’s check the Node types that we have and their fields
A word about Drupal entities

  • Creating our first view

  • Creating our first display

  • Views and Displays

  • Display Type - page

  • Left column

      - format and fields, filters and sorts

      - Middle column

      - settings, header, footer, pager

  • Advanced

      - contextual filters, relations, caching and other nudges

Quick overView interface tour

First two are the kings:

  • Page

  • Blocks

And some more out of the box:

  • Attachment

  • Entity Reference

  • Feed

  • Embed
Types of views (quick now, detailed later)

  • What is formats

     -  the way we want to render our list

     - represents the HTML format that would be generated

  • There are some combinations of Formats and Row styles that make no sense at all

  • That’s why I introduce the good ones as recipes

  • Mostly being used for administration pages

  • Sortable columns

  • Edit and drop buttons are for here

  • Let’s see an example!
Views format Table with fields

  • Rendering either as Unordered or as Ordered list

  • Let’s see an example
Views format HTML list with fields

View mode ( or Display Mode ) ?

  • existing

  • activating another one

  • Using it in a View ( the Teaser Display Mode )

  • Let’s nudge a bit

     - change some formatters

     - remove some fields

The default one is the detail view of the Entity.

If needed we may create a new one.

Views format Content / Display Modes

  • Number of columns

  • Alignment

  • Some default classes
Views format Grid with fields/content

  • The one that I personally use the most

  • Is just default div wrappers so it is general enough
Views format Unformatted with fields/content

We have a list. Let’s filter it !

  • Status

  • Type

  • Search

  • Language

  • Filter on term

Letting the user interact with the list

  • Filter as select

  • Filter as multiple select

  • Searching with form input

  • Combine


  • Change operator

  • Change the Name of the filterable field

  • Change the parameter value

  • We could also easily put it to another block (will show you that later)
Filters exposed

  • How the filters are interacting with each other

  • Filter groups

  • Rearrange

  • Example
Filters AND and OR

Sort that those results!

  • Publish date

  • Sorting by sticky on top of the lists

  • Title Alphabetical

Show stuff on top or at the bottom of our View.

  • Result summary

  • Free text that we want to show

  • Empty node Frontpage behaviour

  • Render another view

  • Same for “No results behavior”
Header and Footer elements

Yes we may nudge that too!

  • Specified number of items

  • Display all items

  • Full pager

  • Mini pager (much faster)
Advanced Views
7 Lectures 37:04

Let’s briefly check Drupal 8 permissions:

  • What are drupal users

  • Roles

  • Permissions

Let’s apply some to our View!

  • Access based on Permissions

  • Access based on Roles

  • Related to the current node or taxonomy

  • Related in a way to the current logged in user

  • Some custom field correlation

  • Default value

  • Apply validation criteria

  • Multiple values

  • Example
Contextual Filters

That’s basically SQL joins

Why do we need that

  • Introduces new fields that we may use

Let’s make an example use case:

  • A reference to another entity - per say a User

  • A field that exists only there

  • Show the e-mail of the author

  • Basic and input required  - is about the starting point

  • Adding a reset button

  • Changing some form labels

  • Some words about Drupal Blocks

  • Expose our exposed filters to a block form

  • Put it in the sidebar
Exposed form improve

  • What is Ajax ?

  • Let’s activate it

  • Ajaxed pager

  • Ajaxed exposed filters

  • What is Caching ?

  • Tag based

  • Time based

  • Views settings

  • Don’t apply to all most of the time (be careful)

  • Organize to make your life and the life of your co-workers easier

  • Clone a display to something else (a wonderful feature)

  • Clone a whole view
Some tips for Drupal Views housekeeping
Examples with the main View types
4 Lectures 26:05
  • Choose the root path

  • Page title

  • Create a fields page

  • Access for the page

  • Adding to the Menu
Preview 05:00

  • Block name

  • Build our view

  • Block specific settings

  • Blocks overview and placing our block

  • Tricky part - settings in the block.
Block view - creating and placing on the page

  • Let’s show the first 3 results a bit better

  • Let’s apply it to a page

  • Attachment position

  • Inherit filters
Attachment view

  • Some words about Drupal fields

  • Let’s create an Entity Reference field

  • Let’s create a Entity Reference view

  • Filter the referenced items proposals
Entity Reference - show just some nodes as reference
More videos coming ...
1 Lecture 00:32

Other than the videos that are published here are some more videos that you will get, starting from September

Videos that are coming:

Section: Great Custom Modules

In this section we will install custom modules and we will bring in new bells and whistles to Views.

  • Infinite scroll (1st week of September)
  • Better exposed filters (2nd week of September)
  • Slider (3rd week of September)

Section: Example: A front page with contents

In this section we will create a whole front page with the different sections of it.

  • Roadmap of what we are going to build (4th week of September)
  • Creating our new view (1st week of October)
  • Creating the Slider (2nd week of October)
  • Creating the bottom articles (3rd week of October)
  • Creating the archive page (4th week of October)

Final section

  • How you may continue to improve (1st week of November)
List of the videos that are coming
About the Instructor
Nikolay Borisov
4.4 Average rating
43 Reviews
239 Students
2 Courses
Drupal PHP Developer

Highly dedicated developer with a true passion for programming. In my work I am taking care of every aspect of the Drupal Application’s functionality. I love to teach Drupal at my work and in any other possible occasions.

I have a masters degree in IT and I am working as PHP developer for over 8 years and as Drupal PHP developer for more than 5 years.

Other technologies that I really love are Elastic Search, Varnish, MongoDB, Mink/Behat, Python ...