Documentation and instructions are available in the separate CCK Handbook.
Summary and purpose of CCK?
Drupal comes with core content types like story and blog. For such a content type, go to 'Create content' and submit a new story or blog. That's sufficient for pages of pure text and with or without attachments.But what if your users want to be able to submit reviews of their favorite aardvark? That would be a new content type, but I want to be able to display other stuff as well as a chunk of text for every node of that type, and I don't want it to be just attached file links.
My options: I could hack the story.module, OR I could see if someone has already created an aardvark.module for the exact type of content I want, OR using CCK I could create a new content type called Aardvark Review.
Using CCK, I can create a content type that has exactly the fields I need, no more or less. My Aardvark Review for instance might have:
- text field (comments on the aardvark)
- dropdown menu (aardvark color)
- audio file (recording of the aardvark's grunting)
- image (photo of aardvark)
From the users' perspective, they'll just click on Create content > Aardvark Review and get a form that asks them to submit their review, the aardvark's color, a recording, and picture.
For more information about Drupal Development, Drupal Expert, Drupal Developer and Drupal Programmer visit at http://www.dckap.com
Source: http://drupal.org/handbook/modules/cck
No comments:
Post a Comment