I'm new to Drupal and I'm wondering, everything Categories offers it seems I could do with CCK a lot easier and more directly. What am I missing?

Comments

vm’s picture

um? CCK is a content construction kit which allows you to create any kind of content type you want.

categories has nothing to do with content outside of categorizing it.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

thinguy’s picture

May be a more accurate word is vocabulary term than. If I want to add a field to a node I can do it with CCK or with a category/vocabulary term

vm’s picture

Ithink you may want to take the time to go to the handbooks -> core modules -> taxonomy section.

adding a taxonomy to a content type allows you to provide a drop down menu of terms, that allows you or your users to categorize that content.

CCK allows for the creation of content types, that you can then also categorize with taxonomy. taxonomy doesn't necessarily add fields. It adds a blank field for freetagging, or a drop down exposing terms.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

thinguy’s picture

I've read the handbook, I admit I don't grasp all of it but...

with CCK I can create a drop down choice of terms or create a blank field.

Does anyone have an real world example of where CCK is worse than taxonomy?

thinguy’s picture

Let say I was setting up a movie site (I'm not it's just an example). I could create CCK dropdown fields for the movie type (action, comedy, etc) another CCK dropdown for Rating(R,PG,G,etc) and open text fields for run time, description, and stars.

I could also do all of the same thing with Taxonomy terms. Which would be better and why?

vm’s picture

just because you can create a drop down in using CCK doesn't mean it replaces taxonomy.

taxonomy is meant to be used with content types, even content types created by CCK. That being said, I don't believe there is a "better" between the two, they can be used in unison.

when using taxonomy, you tag your movies by genre, and then you can list each genre. you add ratings and you can list by genre and by ratings, so on so forth. I am not sure how you expect to do this with CCK alone.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

kasha_x’s picture

ok, so if I was to create a content type, lets say the movie in question, i could use taxonomy to catagorise the type (i.e. action, comedy) but what about other factors?

Should I create categories for where the movie is showing for example? Or should I do this using CCK? This is kind of confusing. I'm trying to do the same thing with restaurants with the goal of making a search engine where the user can search the location, type and genre of a restaurant in their area.

What's the best way to do this? Thanks for any input.

vm’s picture

every content type can have more then one set of terms associated with it.

example:

if were dealing with movies:

you can create
vocabulary: ratings
terms: PG, R, G, PG-13

&

vocabulary : genre
terms: horror, sci-fi, drama

associate both vocabularies with a new content type called movies

now when you create a "movie" content type you a have two dropdown menus with which to categorize this submission.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

kasha_x’s picture

thanks VM, i'll try this out. see you later when I try to make a search engine out of it all!