Drup

Page 119

Figure 3-3. The Story content type form, after adding custom fields

Fields Functionally, CCK is set up into two end-user pieces. The first of these are fields, which allow a user to save data into your site. Fields represent the type of data that needs to be saved, such as integer, decimal, or text. When choosing a field to add to a content type, the first decision you need to make is what kind of data is being stored “behind the scenes” in the form. Will the information entered into the form be something basic like text or numbers, or something more special like a relationship to another node or user? The field types included in CCK “core” are displayed in Table 3-1. Other modules, such as Fivestar (http://drupal.org/project/fivestar), ImageField (http://drupal.org/ project/imagefield), and Date (http://drupal.org/project/date), add more field types to CCK. These CCK field modules are covered later in the book, in Chapters 4, 7, and 9, respectively. A full list of available CCK field types is available at http://drupal.org/ project/Modules/category/88.

Spotlight: CCK | 95


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.