Photo by Montrasio International




CCK & Views
 ASU Drupal Users Group
  April 2008 / April 2010
Content Creation Kit

• Use to:
 • Create new content types
 • Add and organize additional fields to the
    node creation ...
Views
• Views are sets of content
• Creating a view is like building a database
  query on your nodes.
• Use Views to:
 • ...
Creating a book catalog


• Content types: publisher, author, book
• Views: publishers, authors, books
Publisher content type

• Fields:
 • Name (title)
 • Description (body)
Author content type

• Fields:
 • Name (title)
 • Biography (body)
 • Birth date (date)
Book content type
• Fields:
 • Title (title)
 • Description (body)
 • Author (node reference)
 • Pages (number)
 • Publish...
Catalog view


• Show: title, author, description, cover,
  publish date
• Filter by: author, publish date
Further refinements

• Don’t forget about taxonomies:
 • Book genre (non-fiction, sci-fi, mystery,
    etc.)
 • Book format (...
Theming the output


• CCK: Use the theme layer and / or Panels
• Views: Use Theme Information from View
  to get sample t...
Things to keep in mind

• Keep content types as generic as possible.
  Use taxonomies to differentiate when
  reasonable.
...
CCK + Views

• Events and events calendars
• Podcasts
• Galleries
• Course catalog
• Directory
Links
• CCK and Views modules
• Imagefield module
• Filefield module
• Date module
• Views Bulk Operations
• Full list of CC...
Upcoming SlideShare
Loading in …5
×

Dug cck and views 2010

543 views

Published on

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

  • Be the first to like this

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

No notes for slide





  • Show database (in phpMyAdmin) to show field creation







  • Dug cck and views 2010

    1. 1. Photo by Montrasio International CCK & Views ASU Drupal Users Group April 2008 / April 2010
    2. 2. Content Creation Kit • Use to: • Create new content types • Add and organize additional fields to the node creation form • Simple content display controls
    3. 3. Views • Views are sets of content • Creating a view is like building a database query on your nodes. • Use Views to: • Create displays of sets of content • Provide a UI to filter sets of content
    4. 4. Creating a book catalog • Content types: publisher, author, book • Views: publishers, authors, books
    5. 5. Publisher content type • Fields: • Name (title) • Description (body)
    6. 6. Author content type • Fields: • Name (title) • Biography (body) • Birth date (date)
    7. 7. Book content type • Fields: • Title (title) • Description (body) • Author (node reference) • Pages (number) • Publisher (node reference) • Publish date (date) • ISBN (text) • Cover image (imagefield)
    8. 8. Catalog view • Show: title, author, description, cover, publish date • Filter by: author, publish date
    9. 9. Further refinements • Don’t forget about taxonomies: • Book genre (non-fiction, sci-fi, mystery, etc.) • Book format (paperback, hardcover, etc.) • What else?
    10. 10. Theming the output • CCK: Use the theme layer and / or Panels • Views: Use Theme Information from View to get sample template files
    11. 11. Things to keep in mind • Keep content types as generic as possible. Use taxonomies to differentiate when reasonable. i.e. Just “book” not “non-fiction book” • Conversely, use new content types when taxonomies aren’t “enough.”
    12. 12. CCK + Views • Events and events calendars • Podcasts • Galleries • Course catalog • Directory
    13. 13. Links • CCK and Views modules • Imagefield module • Filefield module • Date module • Views Bulk Operations • Full list of CCK-related modules

    ×