20
Drupal Taxonomy Getting the most out of Drupal’s taxonomy system

Understanding Taxonomy, Drupal Camp Colorado, June 2009

Embed Size (px)

DESCRIPTION

The power and flexibility of Drupal's taxonomy (classification) system is one thing that sets it apart from other CMSs. Yet many Drupal builders fail to fully harness what Drupal gives them in taxonomy. This session will help you get the most from it.Session Overview:- Introduction to taxonomy: what it is.- Clearing up some terminology: what it means.- Current uses, by Drupal core modules, by contributed modules, and on live sites.- How taxonomy relates to the rest of the Drupal framework.- When to use taxonomy and when to use something else, such as custom fields or custom content types.- Modules that further expand the usefulness of taxonomy.

Citation preview

Page 1: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Drupal TaxonomyGetting the most out of Drupal’s taxonomy system

Page 2: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Session format

• Conversational

• Ask Questions

• “Meetup Style”

Page 3: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Session parts

1. Concepts

2. Implementations

3. Alternatives

Page 4: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Taxonomy is not:

photo by Orin Optiglot

Page 5: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Taxonomy IS:

• Classification

• Categories

• Tags

• Naming

Page 6: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Why Taxonomy

• To organize content (in multiple ways)

• To make it easier to find things

Page 7: Understanding Taxonomy, Drupal Camp Colorado, June 2009

A few live examples

• http://www.developmentseed.org/tags/meetup

• http://www.discerningreader.com/

• http://www.foreignaffairs.com/regions/Africa

• http://www.lynda.com

Page 8: Understanding Taxonomy, Drupal Camp Colorado, June 2009

developmentseed.com

Page 9: Understanding Taxonomy, Drupal Camp Colorado, June 2009

discerningreader.com

Page 10: Understanding Taxonomy, Drupal Camp Colorado, June 2009

foreignaffairs.com

Page 11: Understanding Taxonomy, Drupal Camp Colorado, June 2009

lynda.com

Page 12: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Terminology

• taxonomy "system"

• vocabulary "facet"

• term "category/tag"

• nodes

Page 13: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Terminology

• Taxonomy » Vocabulary » Term

• Taxonomy = Multiple groups of categories

• Vocabulary = Attribute Area (or Category Type)

• examples: “Genre” “Tags” “Color”

• Term = Actual Attribute or Category

• examples: “Romance” “Africa” “Purple”

Page 14: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Basic StructuresFlat Hierarchical

Page 15: Understanding Taxonomy, Drupal Camp Colorado, June 2009

demos

Page 16: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Alternatives

• CCK text fields (dropdowns)

• CCK content_taxonomy fields

• Custom content types (posters vs images)

Page 17: Understanding Taxonomy, Drupal Camp Colorado, June 2009

CCK Text Fields (dropdowns)

• If the list will very seldom change

• Harder for hierarchies

Page 18: Understanding Taxonomy, Drupal Camp Colorado, June 2009

content_taxonomy module

• Maintain lists using taxonomy system

• More separated from the taxonomy system

Page 19: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Content Type

• When you need lots of meta-data, attached fields

• e.g. Actor: Name, Age, Photo, Awards

Page 20: Understanding Taxonomy, Drupal Camp Colorado, June 2009

Questions

• Be kind :)