Overview of Views

Video loading...

  • 0:05
  • 0:08
    Overview of Views
  • 0:09
    with Michelle Lauer
  • 0:18
    MICHELLE LAUER: Views is the most popular contributed module.
  • 0:21
    In the subsequent chapters, we'll show
  • 0:23
    you step-by-step how to use Views.
  • 0:26
    Views is a query builder that makes lists of your content.
  • 0:30
    But what does that mean?
  • 0:32
    Let's pretend we're looking for a new car.
  • 0:34
    And we want our salesperson to only show us green cars.
  • 0:39
    No, let's make that blue cars.
  • 0:42
    Or maybe, we only want to see trucks.
  • 0:46
    Think of all of your content as this giant parking lot.
  • 0:50
    Views allows you to create a list of only the content that you want,
  • 0:54
    based on the criteria that you define.
  • 0:58
    And you can concatenate this criteria.
  • 1:00
    You can say, show me all the content that is of the type, article
  • 1:06
    and, authored by the admin user.
  • 1:10
    Back in the olden days of Drupal, we used to write raw SQL.
  • 1:14
    Now, Views does all of this for us.
  • 1:16
    To create a list of content on our site,
  • 1:19
    we don't need to know anything about the database at all.
  • 1:24
    Views will give us an administrative interface where we can click around
  • 1:27
    to configure our criteria, and also how we'd like it to be output.
  • 1:33
    The previous slide showed us that there
  • 1:35
    are a lot of options to select from.
  • 1:37
    But in basic terms-- Views sucks data in, fires off magic thingies,
  • 1:42
    and then outputs hotness.
  • 1:45
    When creating a View, the first thing that we select
  • 1:48
    is our Base Table.
  • 1:49
    This is the pool of data from where we
  • 1:51
    want to start creating our lists.
  • 1:54
    Do we want to show information about nodes, or users, or comments, even.
  • 1:59
    And then we can select what we'd like our first Display to be.
  • 2:03
    Should our list to be a page, with a unique URL.
  • 2:06
    Or a block, that we can place in any region in our site.
  • 2:11
    For a Display, in addition to selecting the filter criteria,
  • 2:15
    we can specify which fields we want to appear.
  • 2:18
    And also, what order we'd like our content listed.
  • 2:22
    Advanced Features allows us to filter content
  • 2:24
    based on a current condition-- like the URL, or the logged-in user.
  • 2:30
    We also can gather information that is related to our current result.
  • 2:35
    Views allows us to have multiple displays for each View.
  • 2:39
    For each subsequent Display you create,
  • 2:41
    it will inherit the configurations of your first Display.
  • 2:45
    Although the new Display utilizes your previous settings,
  • 2:48
    you can override that.
  • 2:51
    Once we've selected our Base Table, and configured our Display
  • 2:55
    settings, Views will also allow us to specify the HTML output.
  • 3:01
    We can choose from a simple div structure,
  • 3:04
    and ordered lists, or even a table.
  • 3:07
    Views is a powerful and highly-configurable list maker.
  • 3:11
    Throughout the course of these videos,
  • 3:13
    we're going to take the content types and fields that we created
  • 3:16
    during the Intro to Fields for Site Builders video series.
  • 3:20
    We'll continue the job board example,
  • 3:22
    and create unique listings.
  • 3:24
    The Views module contains so many configurations and settings.
  • 3:28
    Through our practical examples, we aim to demystify it.
  • 3:31
    So let's dive in.

Introduction to Views in Drupal 7

Loading ...

Overview of Views


The Views module is the most downloaded contribution on Drupal.org. It is a powerful list-maker that not only provides a GUI for creating a query but also gives you options on how you want to display your data.

This video series will continue the Job Board example from the Fields for Site Builders series where we will discover ways to display all of the job postings, allow people to find the job they are looking for, and easily apply for it.

Additional resources: 

Average review

No votes yet