I'm working on redoing my site http://www.simplypets.com and I've run into a bit of a problem/issue with the vocabularies. Almost everything on the site will be classified by type of pet (dog, cat, fish, ferret, etc.), but then many of the sections will have a specific sub-categorizations. For example for the Recipes section (which the recipe module works great for, you can see the current non-drupal version here: http://www.simplypets.com/recipes/) the top level classification would be by pet, but the next level of classification would be by meal type (meal, treat, medicinal). Obviously I don't want the meal classifications to show up else where on the site as they wouldn't make any sense for any of the other content, so I can't just include them within the main vocabulary. I could make a new vocabulary for the the recipe section that starts with the pet type then goes to meal type, but doing that for each section I'd end up with 5 different vocabularies that all started with the same list of pets.

Is there any way to do nested vocabularies or something similar where you can specify specific node types that apply for sub-vocabularies or terms?

Thanks, and Drupal so far has been great!
--James

Comments

killes@www.drop.org’s picture

one for pets and one for meals. If you then access taxonomy/and/4,7 (where 4 would be a pet term (say: dog) and 7 a meal term (say:carrot)) you would get all nodes with dogs that eat carrots.

moshe weitzman’s picture

When you define a vocabulary, you also get to say which node types are allowed to use that vocabulary. In your case, the 'meals' vocabulary should only be associated with recipes. this will keep the meals dropdown menu from appearing when you try to add or view a blog, or story, etc.