Use content-type or taxonomy?

2 replies [Last post]
Last seen: 3 years 26 weeks ago
Joined: 2011-06-10


Im site-building a smaller site at the moment, and have to make a content-type of 'product'.

All of the products have a category, and some of those categories have a main-category and so on... - So its nested.

An example with clothes:

T-shirt(product) --> Clothes(main-category)

Sneakers(product) --> Shoes(category) --> Clothes(main-category)

There can be more levels for the products-chain, so the solution have to be pretty dynamic.

What is the best solution for creating this with Drupal? - Should I make content-types called Main Product Category, and one called Product Category, and references the product (by a field) with the Node Reference-module, or would some of you use taxonomy in stead.

Any ideas are very welcome.



Chris Shattuck
Last seen: 10 weeks 4 days ago
Joined: 2009-08-16
Hi Steffen, If you're working

Hi Steffen,

If you're working in Drupal 7, you can expand both taxonomy and content types with fields, so it's a little more tricky to decide which to use. Generally, if I end up using the word 'category' in describing a piece of content, I will try to go with taxonomy, mostly because the kinds of modules that are built to cater to and extend taxonomy functionality. If I'm going to build a contributed module that helps do something neat with categories, I'm going to built it for taxonomy rather than content types.

The exception to this would be if my categories are going to be acting a lot more like content then categories. Then I might want to go with a content type to leverage contributed modules build specifically for extending nodes specifically, and not entities in general.

I'd love to hear what other people think about this.


Last seen: 10 years 10 weeks ago
Joined: 2011-02-28
In my experience, I would

In my experience, I would also suggest using taxonomy terms as categories. You could create a generic "Product" content type, create a "Products" vocabulary and use a taxonomy reference field on the content type. Creating and nesting categories (taxonomy terms) is going to work nicely. This way, a single product can be assigned one or multiple categories. Hope it helps.

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:

Contact us

Below are the supported keyboard shortcuts for our video player.

Start / stop video
Go to next video
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
Jump to a percentage (2 is 20%, for example)
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
1 month
6 months
10% off
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.