Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Categories and tags are a blog's best friend

Parent Feed: 
Drupal Blog - Tags and Categories

My old blog used Wordpress, and I wanted to carry over Wordpress's categorization methods into Drupal.

There are two kinds of taxonomies I wanted to add:

  1. A heirarchy of categories. This is like a table of contents.  It lays out the subject matter of my blog.
  2. General tags.  I want to describe each blog post with tags I make up on-the-fly.

To cover both, I created two vocabularies.  (A vocabulary is a set of terms).  To create a vocabulary:

  1. Click the Administer link.
  2. Content management.
  3. Taxonomy.
  4. Click the Add vocabulary tab.

I called the first vocabulary "Categories" and applied them to my blog posts under Content Types.  Click save.

Click "Add terms."  Try to create a good hierarchy of terms.  Since my blog only has a few Drupal-related posts at the time of this writing, I went with;

Web Development
--> Drupal 6

Remember that you can click and drag items to create subcategories, one under another.  As the blog grows, I'll probably post other articles on subjects such as PHP, Javascript and MySQL.

To create the tags taxonomy, return to the main Taxonomy page and follow the same steps.  But this time, under settings, select Tags.

Instead of adding terms under Tags, I chose to edit my previous blog posts and add tags for each.

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web