Watch videos with subtitles in your language, upload your videos, create your own subtitles! Click here to learn more on "how to Dotsub"

Lullabot: Intro to Views for Drupal 7.01

0 (0 Likes / 0 Dislikes)
  • Embed Video

  • Embed normal player Copy to Clipboard
  • Embed a smaller player Copy to Clipboard
  • Advanced Embedding Options
  • Embed Video With Transcription

  • Embed with transcription beside video Copy to Clipboard
  • Embed with transcription below video Copy to Clipboard
  • Embed transcript

  • Embed transcript in:
    Copy to Clipboard
  • Invite a user to Dotsub
[] [Learn Drupal] [♪ Music ♪] [Overview of Views] [Intro to Views for Drupal 7] [Chapter 1 with Michelle Lauer] Views is the most popular contributed module. [Views] [The Drupal list-o-matic] In the subsequent chapters, we will show you step-by-step how to use Views. Views is a query builder that makes lists of your content. [Query builder] [The who-what now?] But what does that mean? Let's pretend we're looking for a new car, and we want our salesperson to only show us green cars. [Color = 'Green'] No, let's make that blue cars. [Color = 'Blue'] Or maybe we only want to see trucks. [Type = 'Truck'] Think of all of your content as this giant parking lot. [Type = 'Convertible'] Views allows you to create a list of only the content that you want based on the criteria that you define. And you can concatenate this criteria. [Type = 'Hybrid' and Color = 'Blue'] You can say "Show me all of the content that is of the type article and authored by the admin user." Back in the olden days of Drupal, we used to write raw SQL. Now, Views does all of this for us. To create a list of content on our site, we don't need to know anything about the database at all. Views will give us an administrative interface where we can click around to configure our criteria and also how we'd like it to be output. [Pointy clicky!] The previous slide showed us that there are a lot of options to select from, but in basic terms, Views sucks data in, fires off magic thingys, and then outputs hotness. [Base Table (node, user, comment)] When creating a view, the first thing that we select is our base table. This is the pool of data from where we want to start creating our lists. Do we want to show information about nodes or users or comments even? [Display (Page, Block, RSS Feed)] And then we can select what we'd like our first display to be. Should our list be a page with a unique URL or a block that we can place in any region in our site? [Fields, Filters, Sorts, Context Filters, Relationships] For a display, in addition to selecting the filter criteria, we can specify which fields we want to appear and in also what order we'd like our content listed. Advanced features allows us to filter content based on a current condition like the URL or the logged-in user. We also can gather information that is related to our current result. Views allows us to have multiple displays for each view. [Page Display] [Filters, Context Filters, Page-specific settings] For each subsequent display you create, it will inherit the configurations of your first display. [Block Display] [Filters, Sorts, Block-specific settings] Although the new display utilizes your previous settings, you can override them. Once we've selected our base table and configured our display settings, Views will also allow us to specify the HTML output. [Output Style (List, Table, Grid)] We can choose from a simple div structure and ordered lists or even a table. Views is a powerful and highly configurable list maker. Throughout the course of these videos, we're going to take the content types and fields that we created during the Intro to Fields for Site Builders video series. Well, continue the job board example and create unique listings. The Views module contains so many configurations and settings, and through our practical examples, we aim to demystify it. So, let's dive in.

Video Details

Duration: 3 minutes and 35 seconds
Country: United States
Language: English
License: All rights reserved
Producer: Lullabot
Views: 214
Posted by: open on Sep 30, 2011

The Views module is the most downloaded contribution on 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 one they are looking for and easily apply for it.
TAGGED: Michelle Lauer, overview, presentation and views.

Caption and Translate

    Sign In/Register for Dotsub to translate this video.