Views DemystifiedRain Breaw
Wednesday, March 9, 2011
What is Views?Views is a module that you can use to quickly create defined lists of content for your site.
How those lists look/display, how they are accessed, and their limitations are up to:! !
your imagination your budget your time
Wednesday, March 9, 2011
What can Views do? Replace the front page with your own displays.
Replace the taxonomy displays with your own.
List of users for a community-style site.
Specific content and exposed sorting.
Special RSS Feeds / displays.
Restricted Views for site managers (mention VBO)
AND MUCH MORE...Wednesday, March 9, 2011
Customize Front Page
cavotes.org
Wednesday, March 9, 2011
Replace Term PagesYou can do this, instead of... Living with the defaults.
rainbreaw.comWednesday, March 9, 2011
Lists of Users
drupalcampla.com
Wednesday, March 9, 2011
Specific Content w/ Sorting
kitchencaravan.com
Wednesday, March 9, 2011
Specific Content w/ Sorting
cavotes.org
Wednesday, March 9, 2011
Special RSS Feeds
cavotes.org Issues Only
Wednesday, March 9, 2011
Restricted Access Views
publicaffairs.ucla.edu comment admin view
Wednesday, March 9, 2011
Views Slideshow
manifestingme.com - IT ROTATES!
Wednesday, March 9, 2011
Video Player w/ MediaFront
cyberiamedia.comWednesday, March 9, 2011
Step 1: Install & EnableDownload and Install both:
Views - drupal.org/project/views Advanced Help - drupal.org/project/advanced_help
Visit the Module page to enable needed modules: D7: yoursite.com/admin/modules D6: yoursite.com/admin/build/modules
Modules to enable include:Views, Views UI, Advanced Help (+)
Wednesday, March 9, 2011
Step 1: Install & EnableOther essential basic modules for great easy Views:
Token Taxonomy Link Date CCK (D6 only, in core for D7) ImageCache (D6 only, in core for D7) Views Or (D6 only, in core for D7)
Wednesday, March 9, 2011
Step 2: Looking at ViewsThe Views management page:
D7: yoursite.com/admin/structure/views D6: yoursite.com/admin/build/views
Letʼs take a look and see whatʼs there...
The easiest way to understand how Views worksis to play with clones of the Default Views.
Letʼs look at the Default Archive View together...
Wednesday, March 9, 2011
Step 2: Looking at ViewsA quick overview of the UI in D7.
Wednesday, March 9, 2011
Step 3: Create a ViewStart with the Defaults & Preview
Filters - What types of stuff do you want to show?
Fields - What elements of the content do you want to show? Can we easily make them look better?
Basic & Style Settings, Header, Footer, Empty Text
Sorting
Exposed Filters
Wednesday, March 9, 2011
Step 4: Create DisplaysNow you have your defaults - how do users see them?
Page Display
Blocks
Attachment Displays
RSS Feeds
Additional Row Styles from Other Contrib Modules
Wednesday, March 9, 2011
If We Have Time...As you become more comfortable with Views, youʼll definitely be using:
Arguments (Want to turn a Vocabulary into an Index?)
Relationships (Think about the functionality you used to vote for sessions.)
Expose Filters in Blocks
Wednesday, March 9, 2011
Warnings / Reminders: Be careful about Defaults and Overrides!
(D7 - click the correct Save button!) (D6 - if it is italic, you are editing the defaults!)
Your View settings do not save until you SAVE.
Include “Published -> Yes” if you do not want unpublished nodes in your display.
Donʼt clutter your view with unnecessary items. Remember that you are building a query!
Wednesday, March 9, 2011
Additional Modules:For Drupal 7
Views Bulk Operations Calendar MediaFront
Suggestions?
Letʼs start the list here: #d7views
For Drupal 6
Views Rotator (easy!) Views Slideshow
Views Accordion Views Bulk Operations Views Bonus Pack Calendar Views Or MediaFront
Wednesday, March 9, 2011
More Ways to Learn 2 hour video from DrupalCampLA 2009:
sunrainproductions.com/drupalcampla/views-demystified
Views 2 Unofficial Tutorials: drupal.org/node/322506
Awesome tutorial from Matt Petrowsky (Drupal 6)gotdrupal.com/videos/drupal-views-tutorial
Using Drupal from OʼReilly
Wednesday, March 9, 2011
What did you think?
Locate this session on the DCC website:http://chicago2011.drupal.org/sessions
Click the “Take the Survey” link.
Thanks!
Wednesday, March 9, 2011
Top Related