I'm working on a module that needs to handle content in an interesting way, and I'd like some feedback about a good way to implement it. For this example, let's say that the content I'd like to organize is food.

I want to be able to create food as content and have a page about each food that gives an overview of that food (nutrition facts, tasteyness, ect.). I want this peice of content to be categorized by its type--like meat or dairy. Simple so far, but here is the catch. I want to be able to add categories "underneath" each peice of food content. For example, a news category with the latest headlines about beef.

I also would like to be able to have a higher catergory for all meat products. So there would be news about all meat in general, and then news about the specific type of meat, 'beef'.

It would have to scale to support thousands of food items.

  • Dairy
    • Milk
      • News
    • Eggs
      • News
    • News
  • Drink
    • Soda
      • News
    • News
  • Meat
    • Beef
      • News
    • Chicken
      • News
    • Lamb
      • News
    • News

What is the best way to implement this type of taxonomy system? Thanks!

Comments

Samat Jain’s picture

I'm not sure what you're wanting to accomplish here, but I'd split these into two Drupal vocabularies:

Food category (multilevel)
Dairy, Milk, etc

Type category
News, whatever other content-type

__
Personal home page | Rhombic Networks: Drupal-friendly web hosting

Will White’s picture

That makes sense, but would it be a bad idea to have a different category for each piece of food content?

venkat-rk’s picture

Every term you add to a vocabulary is actually a 'category' (Drupal terminology: terms=categories), so even in your example, you have already defined a different category for each type of food content.