Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Views! Huh? What is it good for?

Views! Huh? What is it good for?

Slides from my presentation at Twin Cities DrupalCamp 2012 for a presentation about the Views module. An introduction to what views is, why you would want to use it, when, and how to get started building your first views.

7c49b77a97bebe0eabe6bb5cb2b66671?s=128

eojthebrave

May 19, 2012
Tweet

More Decks by eojthebrave

Other Decks in Technology

Transcript

  1. Views. Huh? What is it good for? Saturday, May 19,

    12
  2. @eojthebrave • joe@lullabot.com Consulting • Training • Development Saturday, May

    19, 12
  3. @eojthebrave • joe@lullabot.com Saturday, May 19, 12

  4. All websites are made of lists of content. users photos

    files comments lists Saturday, May 19, 12
  5. Saturday, May 19, 12

  6. Saturday, May 19, 12

  7. Drupal is really good at content but lacks advanced features

    for creating lists. Saturday, May 19, 12
  8. Saturday, May 19, 12

  9. SELECT DATE_FORMAT((FROM_UNIXTIME(node.created) + INTERVAL -14400 SECOND), '%Y%m') AS created_year_month, COUNT(node.nid)

    AS num_records FROM node node LEFT JOIN node_revisions node_revisions ON node.vid = node_revisions.vid LEFT JOIN users users_node_revisions ON node_revisions.uid = users_node_revisions.uid WHERE node.status <> 0 GROUP BY created_year_month ORDE ... blah blah blah, blah blah ... Saturday, May 19, 12
  10. Saturday, May 19, 12

  11. COLOR = ‘GREEN’ Saturday, May 19, 12

  12. Saturday, May 19, 12

  13. COLOR = ‘BLUE’ Saturday, May 19, 12

  14. Saturday, May 19, 12

  15. TYPE = ‘TRUCK’ Saturday, May 19, 12

  16. Saturday, May 19, 12

  17. TYPE = ‘CONVERTIBLE’ Saturday, May 19, 12

  18. Saturday, May 19, 12

  19. TYPE = ‘HYBRID’ AND COLOR = ‘BLUE’ Saturday, May 19,

    12
  20. VIEWS The Drupal List-O-Matic Saturday, May 19, 12

  21. Saturday, May 19, 12

  22. Pointy clicky! Saturday, May 19, 12

  23. Base Table (node, user, comment) Saturday, May 19, 12

  24. Base Table (node, user, comment) Saturday, May 19, 12

  25. Display (Page, Block, RSS Feed) Base Table (node, user, comment)

    Saturday, May 19, 12
  26. Display Base Table (node, user, comment) Fields Filters Sorts Context

    Filters Relationships Saturday, May 19, 12
  27. Default Display Fields Filters Sorts Context Filters Relationships Base Table

    (node, user, comment) Saturday, May 19, 12
  28. Default Display Fields Filters Sorts Context Filters Relationships Base Table

    (node, user, comment) Page Display Fields Filters Sorts Context Filters Relationships Page-specific settings Saturday, May 19, 12
  29. Default Display Fields Filters Sorts Context Filters Relationships Base Table

    (node, user, comment) Block Display Fields Filters Sorts Context Filters Relationships Block-specific settings Saturday, May 19, 12
  30. Default Display Fields Filters Sorts Context Filters Relationships Base Table

    (node, user, comment) Saturday, May 19, 12
  31. Base Table (node, user, comment) Display Fields Filters Sorts Context

    Filters Relationships Saturday, May 19, 12
  32. Base Table (node, user, comment) Display Fields Filters Sorts Context

    Filters Relationships Output Style (List, Table, Grid) Saturday, May 19, 12
  33. Structure >> Views Saturday, May 19, 12

  34. Structure >> Views >> Add New View Saturday, May 19,

    12
  35. Structure >> Views >> “Edit” Saturday, May 19, 12

  36. Structure >> Views >> “Edit” Saturday, May 19, 12

  37. Structure >> Views >> “Edit” Saturday, May 19, 12

  38. Structure >> Views >> “Edit” Saturday, May 19, 12

  39. Structure >> Views >> “Edit” Saturday, May 19, 12

  40. Structure >> Views >> “Edit” Saturday, May 19, 12

  41. Structure >> Views >> “Edit” Saturday, May 19, 12

  42. Structure >> Views >> “Edit” Saturday, May 19, 12

  43. Structure >> Views >> “Edit” Saturday, May 19, 12

  44. Structure >> Views >> “Edit” Saturday, May 19, 12

  45. Structure >> Views >> “Edit” Saturday, May 19, 12

  46. Structure >> Views >> “Edit” Saturday, May 19, 12

  47. Structure >> Views >> “Edit” Saturday, May 19, 12

  48. Structure >> Views >> “Edit” Saturday, May 19, 12

  49. Structure >> Views >> “Edit” Saturday, May 19, 12

  50. Structure >> Views >> “Edit” Saturday, May 19, 12

  51. Structure >> Views >> “Edit” Saturday, May 19, 12

  52. Saturday, May 19, 12

  53. Saturday, May 19, 12

  54. Saturday, May 19, 12

  55. Structure >> Views >> “Edit” Saturday, May 19, 12

  56. Structure >> Views >> “Edit” Saturday, May 19, 12

  57. Saturday, May 19, 12

  58. Saturday, May 19, 12

  59. Saturday, May 19, 12

  60. Saturday, May 19, 12

  61. Saturday, May 19, 12

  62. Saturday, May 19, 12

  63. Saturday, May 19, 12

  64. Saturday, May 19, 12

  65. Saturday, May 19, 12

  66. Saturday, May 19, 12

  67. Saturday, May 19, 12

  68. Some Additional Modules Calendar Views Bulk Operations (VBO) Location jCarousel

    You know, like the one on the wall in your kitchen. Make a list and then perform an operation on all items in the list. Make a list and display items as points on map. Make a list and then make it slidey. Saturday, May 19, 12
  69. Some MORE Additional Modules Entity Reference Flag Date Create relationships

    between things. Bookmark, my playlist, favorites, needs moderation ... Additional options for filtering and viewing dates. Saturday, May 19, 12
  70. Views. Huh? What is it good for? Saturday, May 19,

    12
  71. Views. Huh? What is it good for? Pretty much everything

    ... @eojthebrave Saturday, May 19, 12