Hi,

When do we assign a node to a vocabulary and when do we assign it to a term?

I thought that vocabulary is a category and terms as it's sub categories. But I think I may be wrong.

For example, if the below is the structure of my site, how should I classified my nodes?

Articles
=========
Dogs
- Dog Breeds
- Dog Health
Cats
- Cat Breeds
- Cat Health

News
====
Dogs
Cats

Reviews
========
Dog Products
Cat Products

Am I right to say that Articles, News & Reviews will be the Vocabulary and the rest should be Terms?

Comments

wardo@drupal.org’s picture

I would do just what you say, don't know if that is "technically" right though!

Success’s picture

Do people assign nodes to a Vocabulary?

Or, is it a good practise to assign nodes to terms only?

superjacent’s picture

If I've got this right, the Vocabulary is only a container to hold like terms. Unless I'm missing the point somewhere, you can't associate a node to a vocabulary directly. You can only associate to a term (category) contained within a vocabulary.

Animals
-Dogs
-Cats
-Horses

For the above the Vocabulary name is 'Animals' but you can only associate nodes to the terms (Dogs, Cats or Horses).

___________________________

Steven Taylor
Melbourne, Australia.
http://superjacent.net/cms

TheSchaef’s picture

The forums, for example, are a vocabulary unto themselves. The terms in that vocabulary make up the forums and containers of your forum module.

So logically, if I wanted to have a "links" page, I would make a vocabulary "Links" or similar, with terms that make up the various categories into which the sites are sorted, and then produce a page that says "hey, here are some links to stuff" and then list the "categories" (read: terms), upon which clicking would produce all the content to which I assigned those terms.

Why would the forum vocabulary be a reasonable root of the forum module, divided up by the terms, but the "Links" vocabulary would not be a root "page" or "node" with the different terms that make up the categories?

mooffie’s picture

Nodes are associated with terms.

"vocabulary" is... it tells us what the "knowledge domain" of the terms is.

For example, if the below is the structure of my site, how should I classified my nodes?
...
Am I right to say that Articles, News & Reviews will be the Vocabulary and the rest should be Terms?

Well, that's one possibility.

Another possibility:

Animals (vocabulary)
=======
Dogs
Cats
Parrots

What (vocabulary)
====
Breeds
Health
Food
Products

And 'News', 'Article' and 'Review' (note: singular) are node types.

If some article talks about cat breeds, you tag it with TWO terms: 'cats' and 'breeds'. You can leave out the 'Products' term if all your reviews are talking about products.

Another possibilty, simpler:

What (vocabulary)
====
Dogs
Cats
Parrots
Breeds
Health
Food
Products

And, again, 'News', 'Article' and 'Review' are node types.

Now, you're probabaly asking youself: "so how will I construct a menu similar to the one I outlined in my first message?" Answer: you can use the Views module to compose node lists according to detailed criteria ("show all nodes of type 'Article' that are tagged with both 'Dogs' and 'Products'"); you then put links to such "views" in your menu.

Don't worry if you don't get this "taxonomy" stuff yet. It takes practice.

msosin’s picture

It's all about creating JUST a subcategory not the whole new framework, and to achieve that you have to go through vocab, terms, and whoever knows what else, and there is no good documentation to that at all...

Absolutely ridiculous from the point of view of the person who is trying to do really simple things!!!

Couldn't that be done easier?

Kind Regards

Michael