Views

601 views
528 views

Published on

power point slideshow of Views 101
Cleveland Drupal User Group - 02/05/2011

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
601
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • default content types are page and story with cck we can extend them or change them according to our needs. more additional modules = more extensibility. we could add images, videos, podcasts, links, emails, etc.
  • Views

    1. 1. Introduction to Views Views-6.x-2.12 Cleveland Drupal User Group Presentation - 02/05/2011 
    2. 2. Default Content Types Available to Us &quot;Out of the Box&quot; <ul><ul><li>A  page , similar in form to a  story , is a simple method for creating and displaying information that rarely changes, such as an &quot;About us&quot; section of a website. By default, a  page  entry does not allow visitor comments and is not featured on the site's initial home page. </li></ul></ul><ul><ul><li>A  story , similar in form to a  page , is ideal for creating and displaying content that informs or engages website visitors. Press releases, site announcements, and informal blog-like entries may all be created with a  story  entry. By default, a story  entry is automatically featured on the site's initial home page, and provides the ability to post comments. </li></ul></ul>
    3. 3. Drupal &quot;Out of the Box&quot; <ul><li>requires a database for everything it does </li></ul>pieces of content lists of content skeleton of every site
    4. 4. Pieces of Content CCK (Content Construction Kit) is a small group of modules that assist in the creation of new fields for content types. Drupal core allows us to create a content type, and CCK adds the fields we want to have in that content type to make it suit our needs. This allows for the ultimate in flexibility and customization. CCK exposes data.
    5. 5. <ul><li>Lists of Content </li></ul><ul><li>Views is a module that provides a flexible way to control how lists and tables of content are presented. The Views module is a powerful tool to display, sort, and filter content. Views are considered to be the building blocks of content. Views can even sort and filter data &quot;on the fly&quot; with exposed filters.   Views displays data. </li></ul>
    6. 6. What is Views? <ul><ul><li>query builder </li></ul></ul><ul><ul><li>retrieves a list of content & displays it </li></ul></ul><ul><ul><li>can power a lot of the site </li></ul></ul><ul><ul><li>let's us choose a lot of display info in the UI </li></ul></ul><ul><ul><li>has a lot of theming power </li></ul></ul><ul><ul><li>takes SQL statements and hides them behind a clickable UI </li></ul></ul><ul><ul><li>we don't need to know PHP </li></ul></ul><ul><ul><li>we can change behavior without changing code </li></ul></ul><ul><ul><li>UI interface </li></ul></ul><ul><ul><li>built in data safety </li></ul></ul><ul><ul><li>export capability </li></ul></ul><ul><ul><li>tight integration with many modules </li></ul></ul><ul><ul><li>exposed widgets </li></ul></ul>Advantages
    7. 7. Disadvantages <ul><ul><li>it is not as optimized as it could be </li></ul></ul><ul><ul><li>might not be able to produce the query we want </li></ul></ul>
    8. 8. Non-developers can get some very custom fields. Developers have a quick and easy way to add functionality without starting from scratch.
    9. 9. users , nodes , comments , images , taxonomy terms fields (titles, names, body), filters (criteria, color, type), sorts (how we want it organized), arguments (custom URLs and other filters), relationships (pulling in information from other sections of the site table , ordered list , unordered list , grid
    10. 10. How the UI Relates to the SQL Query <ul><li>Fields - which fields from my result set we want to display </li></ul><ul><li>Filters & Arguments - allow us to adjust and fine tune the result set to the results we want </li></ul><ul><li>Relationships - used to tie in additional data that can help filter it further </li></ul><ul><li>Sort - allows us to adjust how things are ordered </li></ul><ul><li>SELECT </li></ul><ul><li>WHERE </li></ul><ul><li>JOINS </li></ul><ul><li>ORDER BY </li></ul>
    11. 11. About Joins in Views <ul><li>Drupal is only concerned with joins that relate data between two tables; we have access to LEFT JOIN and INNER JOIN . </li></ul><ul><li>A LEFT JOIN returns all the rows from Table A and the all the rows from Table B even when there is no match. An example is to &quot;find all nodes posted by a user, and display the username and node title&quot;. </li></ul><ul><li>An INNER JOIN returns all the rows when there is at least one match in both tables. An example would be to &quot;list all users with any orders&quot;. </li></ul>
    12. 13. Resources for Event Management View <ul><li>http://drupal.org/project/views </li></ul><ul><li>http://drupal.org/project/date </li></ul><ul><li>http://drupal.org/project/calendar </li></ul><ul><li>http://drupal.org/project/flag </li></ul><ul><li>http://drupal.org/project/signup </li></ul><ul><li>http://drupal.org/project/location </li></ul><ul><li>http://drupal.org/project/gmap </li></ul><ul><li>http://www.doitwithdrupal.com/files/u3/UsingDrupalch09.pdf </li></ul>

    ×