Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

26
Drupal CCK and Taxonomy Striking a Balance for Your Information Architecture Kenny Silanskas Client Advisor Acquia @webkenny Bryan House Sr. Director, Marketing Acquia @bryanhouse

description

The early decisions that a Drupal site architect makes regarding their site's information architecture can be some of the most important to a project's scalability and usability. CCK (Content Construction Kit) and Taxonomy are key elements to a solid foundation on which to build a rocking Drupal site. Knowing when, how, and why to leverage them in a given situation is a crucial starting point for anyone building a site in Drupal.

Transcript of Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Page 1: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Drupal CCK and Taxonomy Striking a Balance for Your Information Architecture

Kenny Silanskas Client Advisor

Acquia

@webkenny

Bryan House Sr. Director, Marketing Acquia

@bryanhouse

Page 2: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Upcoming Webinars

 Tuesday March 30th  Drupal Gardens Preview at 8:30am

Register Today - http://acquia.com/webinars

Page 3: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Introduction

•  Kenny Silanskas – Client Advisor, Acquia

@webkenny

Page 4: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

What is CCK and Taxonomy?

CCK: Content Construction Kit Community Contributed Module (For Now)

Provides API for custom field definitions.

Provides a UI for custom field definitions.

There are nearly 450 CCK related modules.

Page 5: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

What is CCK and Taxonomy?

Taxonomy Part of Drupal core

Provides a method for users to classify content in a hierarchical structure

Consists of one or more vocabularies with one or more terms

Can be used for “Free Tagging”

Page 6: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

A Delicious Example of CCK

ice_cream

Page 7: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Tantalizing Taxonomy

•  Flavors   Chocolate

  Fudge

  Vanilla   Cherry

  Maraschino

  Cream

Page 8: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

“Why isn't the flavor a field on our Ice Cream?”

Page 9: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Consider My Favorite Flavor!

Vanilla Cream Cherry

ice_cream

candy_bar

cake

Chocolate

Many of these flavors (terms) can apply to many different types of treats (content).

Page 10: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

“Ok. So, how do I choose?!”

Page 11: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

CCK or Taxonomy?

•  Are you listing attributes?

•  Do you need to store data other than plain text?

•  Do you need more control over the theming?

CCK

Page 12: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

CCK or Taxonomy?

•  Do you need a hierarchy?

•  Should users be able to “free tag” content?

•  Do your objects exist in the real world? (e.g. a U.S State?)

Taxonomy

Page 13: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

CCK or Taxonomy? Both! Let the features decide!

(You wouldn't split up Peanut Butter and Jelly would you?)

Page 14: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

CCK: Various Data Types

Page 15: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

CCK: Validation in the User Interface

Page 16: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

CCK: Wide Variety of Field Types

There are over 430 modules in the community tagged with “Content

Construction Kit (CCK)”

Page 17: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

CCK: Relationships through References

Define a “Node Reference” and create relationships between your content.

Decide which content types can be referenced using simple controls or get as granular as you need to be using the Views module.

Page 18: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Taxonomy: Free World. Free Tagging.

Let the users speak for themselves.

Page 19: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Taxonomy and Views Sitting in a Tree

March (32) February (10) January (4) December (12)

Page 20: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Taxonomy: Cool UI Through Contrib

Page 21: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

A Simple Rule to Remember

CCK Defines. Taxonomy Classifies. (And Ice Cream is delicious, but we've covered that)

Page 22: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Drupal 7: What's Coming

Growth is on the horizon!

Page 23: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Drupal 7: Field API (CCK, The Sequel)

  Fields can be attached to more than just nodes! Yes, that means users and taxonomy terms.

  Consistent Way of Storing and Referencing Fields Consistency == Efficiency == More Beer Time

  Field API Bundles to Group Related Fields No more awkward nodes!

Page 24: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Taxonomy: A Class(ifying) Act Now

  Taxonomy Terms with Fields Now you get to see and hear the chocolate.

  Bind Vocabularies to Content Type Different occasions. Different widgets.

  Path Aliases Taxonomy goes incognito.

Page 25: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Wrapping Up

 CCK Defines. Taxonomy Classifies.

 Know the Feature Set of Each.

 It's Never One or the Other. Always Both.

 Apply Careful Thinking to Make Decisions.

 Drupal 7 is Going to Rock (Of Course)

Page 26: Drupal CCK and Taxonomy: Striking a Balance for Your Information Architecture

Questions

  For more information, visit: – http://acquia.com – http://twitter.com/acquia

 Contact us:

–  [email protected]

–  888.9.ACQUIA

  Try Drupal 7 for free – Sign up for beta code at http://drupalgardens.com

  Sign up for a free 30-day Acquia Network Trial

– http://acquia.com/trial

Recording of today’s event and slides will be posted at:

http://acquia.com/community/resources/recorded_webinars