RSS Feed for This PostCurrent Article

Drupal CCK and Views Tutorial

This tutorial shows how I create a custom content type and then a corresponding view using the Drupal content management platform.

icon for podpress  Lesson #24 [29:53m]: Download


Donate $2

If you found this video to be helpful to you please consider donating the small amount of $2. Or if you need web hosting click here and you'll save $50 off monthly and up hosting plans with Dreamhost. Either way your support is greatly appreciated.


Trackback URL

RSS Feed for This Post53 Comment(s)

  1. auschick | Jul 30, 2007 | Reply

    sweet! i’ve been trying to figure CCK out this week, so this came right in the nick of time :)

  2. praveen kumar veeramalla | Aug 1, 2007 | Reply

    found it very useful.Thank you

  3. themegarden.org | Aug 2, 2007 | Reply

    Very useful and nice.
    It could be nice to see more totorials for drupal from you.

    Thanks.

  4. Pat | Aug 3, 2007 | Reply

    Awesome tutorial, man. I really appreciate when people go over the basics because I often find Drupal to be a bit overwhelming and not knowing what certain things are doing.

  5. Robert Safuto | Aug 3, 2007 | Reply

    I’m glad to do what I can. I’ve spend many hours figuring this stuff out so hopefully I can shorten that time a bit for others.

  6. goddess | Aug 4, 2007 | Reply

    Thank you so much for this tutorial. I’m a drupal noob, sold on the platform and trying to wrap my brain around the intricacies of customization to pull a website together. This tutorial helped make a lot of things clearer for me and gave me a good place to start in some of the things I’m trying to accomplish.

  7. Mariusz Bieniek | Aug 9, 2007 | Reply

    Thank you for this great Video Tutorial. Helped me a lot to understand this thematic better.

  8. Demir | Aug 9, 2007 | Reply

    Thank you for a great tutorial. I used flexinode for 4.7 for my first website and it was great, but the learning transition for my second website was an awkward one until I came across this tutorial. Thank you again for a great tutorial!
    -Demir

  9. KiBl | Aug 17, 2007 | Reply

    Thanks….

  10. JoeB | Aug 23, 2007 | Reply

    Excellent! Thanks for this tutorial! Everyone says that CCK and Views are one of the must-have modules out there, and reading some of the descriptions and forum discussions on it, I still don’t have a clue as to what it actually does. Hopefully this tutorial will clue me in!

  11. raf | Sep 20, 2007 | Reply

    great, simply great man.
    encore félicitations, continuez, we love it.
    je suis esbaudi par tant de clarté.

    raf

  12. loic | Sep 25, 2007 | Reply

    Thanks indeed for this screencast, what a tutorial!
    Keep on the great work!

  13. PerryManson | Sep 29, 2007 | Reply

    Very useful tutorial. Thanks a lot.

  14. jinendra | Oct 24, 2007 | Reply

    Hi! We are implementing Drupal for our campus site, and I find your tutorials very helpful as I am learning Drupal. Thanks.

  15. Jean | Nov 8, 2007 | Reply

    A great tutorial!

    Many thanks for your fantastic support.

  16. darek | Nov 9, 2007 | Reply

    Thanks for the great tutorial, but why not link to the flash vid? http://blip.tv/file/322542/

  17. Robert Safuto | Nov 10, 2007 | Reply

    The Quicktime version is a higher quality version of the screencast. A flash version of all the lessons can be found on the Lesson Player page.

  18. gb | Nov 12, 2007 | Reply

    Nice and usefull !
    Merci.

  19. Sundar | Nov 18, 2007 | Reply

    This was an excellent tutorial. Although I knew most of it, I really wish I had run into it before I struggled with CCK! FWIW, the only thing that I found to be slightly lacking (but it’s the topic of maybe a different tutorial) is how to implement searches within CCK views.

  20. Jake | Nov 28, 2007 | Reply

    I really appreciate these videos! You really have a knack for explaining drupal.

    Can I please recommend a tutorial on the above mentioned “panels” module? Also, anything on templating would be great.

    Thank you, and you definitely earned my $2 :)

  21. Ari | Dec 13, 2007 | Reply

    Very good tutorial, thanks.
    Quick question:

    What if you wanted to add a “Genre” field, and organize shows by genre? Should this be done through taxonomy by creating a Genre vocab, or should an extra field called “Genre” be added to the custom “show” content type?

  22. Robert Safuto | Dec 13, 2007 | Reply

    You could create a field called ‘genre’ as a list and then when you create the view you could filter each view based on the genre. This would allow you to have a page and RSS feed for each genre.

    You could also do this using taxonomy and assign that taxonomy to that content type.

    Since you can do it each way I think the approach comes down to personal preference. The advantage of the view is that it allows you to have more flexibility on how you display the content.

  23. Mark Krynsky | Dec 21, 2007 | Reply

    Great job on this tutorial. What I was really hoping to learn though was how to create a custom “view type” to only display a selected CCK field I created for a specific content type.

    In your tutorial I saw that you have many additional views listed in your dropdown. I have yet to find any good information on how to do this and would think it would be helpful to others as well.

    Continue the great work!

  24. Robert Safuto | Dec 21, 2007 | Reply

    You can display one field if you select a view type of ‘list view’ and then specify the field you want to display in the ‘fields’ section. The drop down list in that section should have every cck field you have created. Select only the field you want and your view should only list those values.

  25. Mark Krynsky | Dec 31, 2007 | Reply

    Robert, thanks so much for the info. Not sure how that slipped under my nose but it was exactly what I needed to do. Donation sent. Keep up the great work and I look forward to following your videos.

    Mark

  26. Robert Safuto | Jan 1, 2008 | Reply

    I’m glad that helped Mark. Thanks for your generous donation and Happy New Year!

  27. Simon Wilkes | Jan 21, 2008 | Reply

    Brilliant tutorial Rob.

    Thanks for posting it. You’ve saved me hours trying to figure this out. You shall be rewarded. Keep up the good work.

    Cheers, Simon.

  28. Jim Skowyra | Jan 22, 2008 | Reply

    An outstanding tutorial! Looking forward to viewing them all. Thanks.

    Hope to see you at DrupalCon in Boston coming up in March.

  29. a | Feb 7, 2008 | Reply

    Thanks to your video tutorial, I finally understand CCK (which I just failed to earlier given its complexity) and views further.

  30. gemp | Feb 29, 2008 | Reply

    Very clean and explicit tutorial !

    It allowed me to create a database of classical composers and one of pieces of music, with a list to choose its composer.

    But I’ve been searching for days now and I cannot manage to display all composer’s musical pieces with a View on the composer’s page… The filter eludes me totally.

  31. Robert Safuto | Mar 3, 2008 | Reply

    gemp: I’m not understanding exactly what’s happening when you say,
    “I cannot manage to display all composer’s musical pieces with a View on the composer’s page…” Is the composer’s page a view in itself? Or is the composer’s page a static page? I might be able to help if I understood the relationship between the composer’s page and the musical pieces.

  32. dom | Mar 7, 2008 | Reply

    Thanks. Great tutorial.

  33. gemp | Mar 10, 2008 | Reply

    It’s quite simple really (sic).

    I created a CCK for Composers, Mozart, Back, etc. with their names, dates, bio…

    Then I created a CCK for Musical pieces describing symphonies, operas, etc. Of course, each musical piece was composed by someone, so I made a Node Reference of the Composers’ CCK to get the name of the relevant composer. Therefore in the Musical pieces’ fields I have a popup with which I can attribute the piece choosing from available Composers.

    Now on the Composer’s node the cool thing would be to list his own Musical pieces as documented in the other CCK… That’s where I was last week.

    Now I installed so many plugins on the test database that I don’t actually know which ones are relevant, but I guess what does the trick is Node Referrer. It allows you, in the Composers’ CCK to add a Referring Node Type field pointing to the Musical pieces with a Referring field of the Referenced Composer. Voilà.

    You may also need the plugin Contemplate to theme it, especially if there’s more than one reference to display.

    Hope I was clear, because now I’d really like a tutorial to understand what I just typed :)

    Thanks again, Robert.

  34. Robert Safuto | Mar 10, 2008 | Reply

    Paul: I’m not familiar with the nodereference module but there are many different ways to get things done in Drupal. My approach would be to include the list of related musical pieces on a block in the sidebar. In order for that to work I would create a category called ‘composers’ and make the field mandatory for both the composer and the musical piece. That category would tie the two nodes together and allow you to create a block view that you could display only when the node type being viewed is a composer.

    You could also do this using a nodereference field, although I haven’t tried that before.

    I don’t have an exact answer for the best way to do this so I recommend that you do a little research. I found a couple of discussions at http://drupal.org/node/82035 and http://drupal.org/node/25974 that can help. Then try a couple of things to see what works for you.

    I do know that I would place the links to the musical pieces in a block rather than try to tie them into a node.

    Rob

  35. Mark | Mar 19, 2008 | Reply

    Great video - it’s really cleared up how CCK and views hang together. This is the kind of independent support that made me choose Drupal as a platform in the first place - thanks Robert.

  36. Alan | Mar 20, 2008 | Reply

    Tnx for great tutorial ;)

  37. Andy | Mar 21, 2008 | Reply

    Anybody who spends this much time on contributing to the community deserves a $2 donation (tip?!) in my book

  38. Robert Safuto | Mar 21, 2008 | Reply

    I just wanted to pop in to say thanks to the people who have taken the time to comment, donate or link to this tutorial. Thank you all :)

    Rob Safuto

  39. Blowski | Mar 31, 2008 | Reply

    I’ll add my praise to the above - I’ve read two books, and watched 3 other videos, and this the first time anything in Drupal has actually made sense.

    Thanks!

  40. Peter | Apr 12, 2008 | Reply

    Great Tutorial. Thanks!

  41. Libor Fikr | Apr 17, 2008 | Reply

    Hello from Czech Republic and very very thanks fot this tutorial who help me with cck and views.

  42. Li an | May 13, 2008 | Reply

    Is it just me or the movie just don’t work ?

  43. am | May 13, 2008 | Reply

    gracias, gracias, gracias, gracias!
    i loved it! really useful! :))))

  44. Robert Safuto | May 14, 2008 | Reply

    Lian: The video is working. Could be a problem with your flash version. You may want to try downloading the Quicktime version.

  45. xesco | May 15, 2008 | Reply

    Great Video. Simple and usefull.
    Thanks.

  46. Darren | May 15, 2008 | Reply

    Just getting into Drupal and found this tutorial very interesting. Can’t wait to try it out! Looking forward to viewing more of your tutorials. Thanks!

  47. Geoff Palin | May 17, 2008 | Reply

    Thanks for this great tutorial, The CCK and Views come in handy big time if you are using the job search module for drupal 5.

  48. Lewis G | Jun 20, 2008 | Reply

    Excellent tutorial. Where’s the Adsense though? That’s how I vote up a page (besides Stumble/Digg).

  49. jcwatson11 | Jul 11, 2008 | Reply

    Thank you!! This tutorial was exactly what I needed to get me started with how to use CCK and tie it into a view. Thank you Thank you Thank you!

  50. ilovefaerytales | Jul 23, 2008 | Reply

    This tutorial is awesome! I’m lost as to how to make use of (and have more control over) Drupal and have stumbled upon this site…How fortunate!

    Again, thanks for taking the time to create this (and more, I hope) and share it with the rest of us!

  51. Robert Safuto | Jul 23, 2008 | Reply

    I’m glad that the tutorial could be of use. You can get more drupal learning from me at http://learnbythedrop.com.

  52. apeee | Jul 25, 2008 | Reply

    This is “THE BEST” tutorial that I’ve ever seen for durpal. CCK+Views always scared me away and I always avoided using them. But since with my new website I had to have some facility which can only be implemented by CCK+Views this video podcast has been very helpful.

    I would like if you make advanced CCK+Views video podcast. And please, Panels video podcast too.

    Thanks.

  53. j3k | Aug 18, 2008 | Reply

    great tutorial! thank you very much!

8 Trackback(s)

  1. From Learn Some More Drupal at Awakened Voice | Jul 30, 2007
  2. From 45 Screencasts to Get You Kicking Ass with Drupal - MineZone Blog | Nov 1, 2007
  3. From Drupal resources « Journal | Nov 4, 2007
  4. From JamesWhinfrey » Post » Using Drupal | Dec 3, 2007
  5. From UCAR Job Blog » Blog Archive » Drupal Adventures Continue | Dec 7, 2007
  6. From CCK Module: Allows you to create customized content with fields « Drupal Newbie: Learning to use Drupal | Dec 14, 2007
  7. From Sage of Code » Blog Archive » Drupal: Creating Custom Content Types | Mar 20, 2008
  8. From THOOR bloggt! » Blog Archive » DRUPAL 6 - meine wichtigsten Links | Jul 29, 2008

RSS Feed for This PostPost a Comment