Productivity without limits
CCK, VIEWS & PANELS
            First edition
Drupalcamp Vienna 2009

           Hagen Graf
  ...
The target group of this talk ...
has a rough idea of
●   why using databases (good start)
●   the idea of lego bricks (op...
I assume this is not like you :-)




                             Photo: http://www.flickr.com/photos/awarnach/3483532628...
Better?




                             Photo: http://www.flickr.com/photos/michale/105825096/
DrupalCamp Vienna, Nov. 09...
The client often wants to have
                  something very complicated




                             Photo http://...
Client's focus 1
                                       Quality




                              Photo http://www.flickr....
Client's focus 2
                              Fast completion




               Photo http://www.flickr.com/photos/30046...
Client's focus 3
                                         Cheap




                   Photo http://www.flickr.com/photos/...
Your reply in the past

 You can only have two of them!
 •   cheap & fast completion → (NO quality)
 •   cheap & quality →...
One possible solution

     developing, developing, developing,
     developing, developing, developing,
     developing, ...
Problems
 •   Module updates
 •   Core hacking
 •   Scalability
 •   Costs
 •   Communication
 •   Documentation
 •   Find...
Another possible solution
•   Use the drupal “lego bricks“, for example
    CCK, VIEWS & PANELS
•   Learn to find the righ...
Hint for hardcore web agencies


… it is possible to earn money
... by honest consulting
… by using the pre-built bricks
....
Blogpost Dries - May 3, 2006 - 17:40
     “We want users, not developers, to be able to
       create custom content types...
Drupal 6 core (2009)
by using a browser - you can
 •   create new content types
 •   assign access rights to different rol...
Have you ever read README.txt?
Content Construction Kit
------------------------
NOTE: Install the advanced_help module
(h...
Why CCK?
It has a
 •   text.module
 •   number.module
 •   userreference.module
 •   nodereference.module
for creating add...
Why CCK?
It has an
 •   optionswidget.module
 •   fieldgroup.module
for creating additional radio & checkboxes
and group f...
Why CCK?
It has a
 •   content_permissions.module
for assigning field based access rights to
roles




DrupalCamp Vienna, ...
Thank you for CCK
Maintainers
The Content Construction Kit was originally developed by:
 •   John Van Dyk
 •   Jonathan Ch...
A few useful modules for my work
 •   Date                    •   Embedded Media Field
 •   FileField               •   No...
Date
 •   A date field




DrupalCamp Vienna, Nov. 09   cocoate.com   22
File field
 •   Upload a file




DrupalCamp Vienna, Nov. 09     cocoate.com   23
Imagefield
  Use it for
  images




DrupalCamp Vienna, Nov. 09      cocoate.com   24
Gallery Widget for ImageField
                         http://drupal.org/project/galleria




                    Example ...
Mp3 player widget for FileField
                   http://drupal.org/project/mp3player




           Example http://www.e...
Embedded field
      http://drupal.org/project/emfield

Video: Blip.TV, Brightcove, Daily Motion, Google,
Guba, JumpCut, i...
Embedded field




DrupalCamp Vienna, Nov. 09        cocoate.com   28
Node Relationships
                http://drupal.org/project/noderelationships




                             See also h...
Node Relationships
                Node references via Popup – so cool :-)




                         See also http://co...
Node references url
   http://drupal.org/project/nodereference_url




DrupalCamp Vienna, Nov. 09    cocoate.com        31
Corresponding node relationships
                   http://drupal.org/project/cnr




DrupalCamp Vienna, Nov. 09      coco...
Why using CCK?

You can fulfill the needs of your clients!
 •   Quality
 •   Fast
 •   Cheap



DrupalCamp Vienna, Nov. 09...
Views


       “This tool is essentially a smart query
                       builder“
                    merlinofchaos

...
Views

With views you can configure
 •   Pages
 •   Blocks
 •   Feeds
Based on content types and additional fields


Drupa...
Views Page




                             Example from http://eu.cocoate.com/

DrupalCamp Vienna, Nov. 09               ...
Views Block




DrupalCamp Vienna, Nov. 09      cocoate.com   37
Views Feed




DrupalCamp Vienna, Nov. 09      cocoate.com   38
Views – exposed filters




DrupalCamp Vienna, Nov. 09   cocoate.com     39
The making of




DrupalCamp Vienna, Nov. 09       cocoate.com   40
Views Relationships
Imagine a photo db in a newspaper
 •   Content-type photo
 •   Content-type article
 •   Node referenc...
Views Parameter
Imagine a used car dealer
 •   Cars on different places
 •   He wants to have blocks on his website
     w...
Views – additional designs
 •   Build tagclouds with views tagadelic
 •   Or coverflow with views imageflow




DrupalCamp...
Views – additional modules


            Like a swiss army knife :-)
             •      Views Bonus Pack
             •  ...
Views – Theming
 •   Reduce markup
 •   Introduce your own css




DrupalCamp Vienna, Nov. 09        cocoate.com   45
Thank you for views & panels
 •   Earl Miles, Sony, many contributors




DrupalCamp Vienna, Nov. 09   cocoate.com   46
Panels
      http://drupal.org/project/panels
 •   Combining all Drupal objects on one page
 •   Nodes
 •   Blocks
 •   Vi...
Panels




DrupalCamp Vienna, Nov. 09    cocoate.com   48
Behind the scenes




DrupalCamp Vienna, Nov. 09     cocoate.com   49
I could talk hours about this ...

But when I created this slide I realized ...
 •   It's more fun to try something in rea...
Thank you very much!

  have fun using CCK, VIEWS an PANELS

                                     Hagen Graf
             ...
Upcoming SlideShare
Loading in...5
×

Productivity without limits CCK, VIEWS & PANELS

2,449

Published on

Slides for a 30 minutes talk at Drupalcamp Vienna, November 27th, 2009

Published in: Education, Technology, Design
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,449
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
66
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "Productivity without limits CCK, VIEWS & PANELS"

  1. 1. Productivity without limits CCK, VIEWS & PANELS First edition Drupalcamp Vienna 2009 Hagen Graf http://cocoate.com http://twitter.com/hagengraf
  2. 2. The target group of this talk ... has a rough idea of ● why using databases (good start) ● the idea of lego bricks (optional but helpful) ● how to find hints on drupal.org (important) ● HTML, CSS, Firefox, Firebug, FTP, Editor (important) ● PHP, GIMP, Photoshop (optional) ● being creative (not always bad) ● writing an invoice (necessary to survive :-) ) DrupalCamp Vienna, Nov. 09 cocoate.com 2
  3. 3. I assume this is not like you :-) Photo: http://www.flickr.com/photos/awarnach/3483532628/ DrupalCamp Vienna, Nov. 09 cocoate.com 3
  4. 4. Better? Photo: http://www.flickr.com/photos/michale/105825096/ DrupalCamp Vienna, Nov. 09 cocoate.com 4
  5. 5. The client often wants to have something very complicated Photo http://www.flickr.com/photos/reinante/3746991396 DrupalCamp Vienna, Nov. 09 cocoate.com 5
  6. 6. Client's focus 1 Quality Photo http://www.flickr.com/photos/elaws/4039318594/ DrupalCamp Vienna, Nov. 09 cocoate.com 6
  7. 7. Client's focus 2 Fast completion Photo http://www.flickr.com/photos/30046478@N08/3562725745/ DrupalCamp Vienna, Nov. 09 cocoate.com 7
  8. 8. Client's focus 3 Cheap Photo http://www.flickr.com/photos/35188692@N00/143210068/ DrupalCamp Vienna, Nov. 09 cocoate.com 8
  9. 9. Your reply in the past You can only have two of them! • cheap & fast completion → (NO quality) • cheap & quality → (NOT fast) • fast completion & quality → (oh la la - NOT cheap :-) ) DrupalCamp Vienna, Nov. 09 cocoate.com 9
  10. 10. One possible solution developing, developing, developing, developing, developing, developing, developing, developing, developing, developing, developing, developing, developing, developing, developing DrupalCamp Vienna, Nov. 09 cocoate.com 10
  11. 11. Problems • Module updates • Core hacking • Scalability • Costs • Communication • Documentation • Finding developers DrupalCamp Vienna, Nov. 09 cocoate.com 11
  12. 12. Another possible solution • Use the drupal “lego bricks“, for example CCK, VIEWS & PANELS • Learn to find the right modules • Use your developer know-how to contribute to the drupal project and make the bricks better DrupalCamp Vienna, Nov. 09 cocoate.com 12
  13. 13. Hint for hardcore web agencies … it is possible to earn money ... by honest consulting … by using the pre-built bricks ... everything is more transparent to your clients and of course for you too :-) DrupalCamp Vienna, Nov. 09 cocoate.com 13
  14. 14. Blogpost Dries - May 3, 2006 - 17:40 “We want users, not developers, to be able to create custom content types from within Drupal's administration interface.“ “The current code name for this project is the "content construction kit" (CCK). The project's goal is to allow users to create custom content types in Drupal through the web.“ http://buytaert.net/custom-content-types DrupalCamp Vienna, Nov. 09 cocoate.com 14
  15. 15. Drupal 6 core (2009) by using a browser - you can • create new content types • assign access rights to different roles (create, edit, delete) • assign taxonomy vocabularies to your new content type • change the design by editing node-....tpl.php DrupalCamp Vienna, Nov. 09 cocoate.com 15
  16. 16. Have you ever read README.txt? Content Construction Kit ------------------------ NOTE: Install the advanced_help module (http://drupal.org/project/advanced_help) to access more help (writing still in progress...) To install, place the entire CCK folder into your modules directory. Go to Administer -> Site building -> Modules and enable the Content module and one or more field type modules: DrupalCamp Vienna, Nov. 09 cocoate.com 16
  17. 17. Why CCK? It has a • text.module • number.module • userreference.module • nodereference.module for creating additional fields in content-types DrupalCamp Vienna, Nov. 09 cocoate.com 17
  18. 18. Why CCK? It has an • optionswidget.module • fieldgroup.module for creating additional radio & checkboxes and group fields together in collapsible fieldsets DrupalCamp Vienna, Nov. 09 cocoate.com 18
  19. 19. Why CCK? It has a • content_permissions.module for assigning field based access rights to roles DrupalCamp Vienna, Nov. 09 cocoate.com 19
  20. 20. Thank you for CCK Maintainers The Content Construction Kit was originally developed by: • John Van Dyk • Jonathan Chaffer Current maintainers: • Karen Stevenson • Yves Chedemois And many other contributors DrupalCamp Vienna, Nov. 09 cocoate.com 20
  21. 21. A few useful modules for my work • Date • Embedded Media Field • FileField • Node Relationships • ImageField • Corresponding node references • MP3 Player • Node Reference URL Widget DrupalCamp Vienna, Nov. 09 cocoate.com 21
  22. 22. Date • A date field DrupalCamp Vienna, Nov. 09 cocoate.com 22
  23. 23. File field • Upload a file DrupalCamp Vienna, Nov. 09 cocoate.com 23
  24. 24. Imagefield Use it for images DrupalCamp Vienna, Nov. 09 cocoate.com 24
  25. 25. Gallery Widget for ImageField http://drupal.org/project/galleria Example http://bloghouse.org/de/galerie-im-blogeintrag DrupalCamp Vienna, Nov. 09 cocoate.com 25
  26. 26. Mp3 player widget for FileField http://drupal.org/project/mp3player Example http://www.evangelisch.de/maerchen/der-mit-dem-frosch-knutscht DrupalCamp Vienna, Nov. 09 cocoate.com 26
  27. 27. Embedded field http://drupal.org/project/emfield Video: Blip.TV, Brightcove, Daily Motion, Google, Guba, JumpCut, imeem, Lastfm, LiveVideo, MetaCafe, MySpace, Revver, SevenLoad, Spike.TV, Tudou, Veoh, Vimeo, YouTube, Local videos (when already uploaded in the files directory) Image: Flickr, ImageShack, PhotoBucket, Picasa Audio: Odeo, Podcastcocoate.com podOmatic DrupalCamp Vienna, Nov. 09 Alley, 27
  28. 28. Embedded field DrupalCamp Vienna, Nov. 09 cocoate.com 28
  29. 29. Node Relationships http://drupal.org/project/noderelationships See also http://cocoate.com/node/463 DrupalCamp Vienna, Nov. 09 cocoate.com 29
  30. 30. Node Relationships Node references via Popup – so cool :-) See also http://cocoate.com/node/463 DrupalCamp Vienna, Nov. 09 cocoate.com 30
  31. 31. Node references url http://drupal.org/project/nodereference_url DrupalCamp Vienna, Nov. 09 cocoate.com 31
  32. 32. Corresponding node relationships http://drupal.org/project/cnr DrupalCamp Vienna, Nov. 09 cocoate.com 32
  33. 33. Why using CCK? You can fulfill the needs of your clients! • Quality • Fast • Cheap DrupalCamp Vienna, Nov. 09 cocoate.com 33
  34. 34. Views “This tool is essentially a smart query builder“ merlinofchaos http://drupal.org/project/views DrupalCamp Vienna, Nov. 09 cocoate.com 34
  35. 35. Views With views you can configure • Pages • Blocks • Feeds Based on content types and additional fields DrupalCamp Vienna, Nov. 09 cocoate.com 35
  36. 36. Views Page Example from http://eu.cocoate.com/ DrupalCamp Vienna, Nov. 09 cocoate.com 36
  37. 37. Views Block DrupalCamp Vienna, Nov. 09 cocoate.com 37
  38. 38. Views Feed DrupalCamp Vienna, Nov. 09 cocoate.com 38
  39. 39. Views – exposed filters DrupalCamp Vienna, Nov. 09 cocoate.com 39
  40. 40. The making of DrupalCamp Vienna, Nov. 09 cocoate.com 40
  41. 41. Views Relationships Imagine a photo db in a newspaper • Content-type photo • Content-type article • Node reference on photo-ID • Result could be a list of articles with photos from the photo content-type DrupalCamp Vienna, Nov. 09 cocoate.com 41
  42. 42. Views Parameter Imagine a used car dealer • Cars on different places • He wants to have blocks on his website with cars related to places • Or blocks with places related to the car :-) • Parameters are coming from the URL DrupalCamp Vienna, Nov. 09 cocoate.com 42
  43. 43. Views – additional designs • Build tagclouds with views tagadelic • Or coverflow with views imageflow DrupalCamp Vienna, Nov. 09 cocoate.com 43
  44. 44. Views – additional modules Like a swiss army knife :-) • Views Bonus Pack • Views Bulk Operations DrupalCamp Vienna, Nov. 09 cocoate.com 44
  45. 45. Views – Theming • Reduce markup • Introduce your own css DrupalCamp Vienna, Nov. 09 cocoate.com 45
  46. 46. Thank you for views & panels • Earl Miles, Sony, many contributors DrupalCamp Vienna, Nov. 09 cocoate.com 46
  47. 47. Panels http://drupal.org/project/panels • Combining all Drupal objects on one page • Nodes • Blocks • Views • Add Content DrupalCamp Vienna, Nov. 09 cocoate.com 47
  48. 48. Panels DrupalCamp Vienna, Nov. 09 cocoate.com 48
  49. 49. Behind the scenes DrupalCamp Vienna, Nov. 09 cocoate.com 49
  50. 50. I could talk hours about this ... But when I created this slide I realized ... • It's more fun to try something in real time • Unfortunately not in this talk • But we can try here at the camp • Any questions so far? DrupalCamp Vienna, Nov. 09 cocoate.com 50
  51. 51. Thank you very much! have fun using CCK, VIEWS an PANELS Hagen Graf hagen.graf@gmail.com http://cocoate.com http://twitter.com/hagengraf DrupalCamp Vienna, Nov. 09 cocoate.com 51
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×