Content

The content module, a required component of the Content Construction Kit (CCK), allows administrators to associate custom fields with content types. In Drupal, content types are used to define the characteristics of a post, including the title and description of the fields displayed on its add and edit pages. Using the content module (and the other helper modules included in CCK), custom fields beyond the default "Title" and "Body" may be added. CCK features are accessible through tabs on the content types administration page. (See the node module help page for more information about content types.)

When adding a custom field to a content type, you determine its type (whether it will contain text, numbers, or references to other objects) and how it will be displayed (either as a text field or area, a select box, checkbox, radio button, or autocompleting field). A field may have multiple values (i.e., a "person" may have multiple e-mail addresses) or a single value (i.e., an "employee" has a single employee identification number). As you add and edit fields, CCK automatically adjusts the structure of the database as necessary. CCK also provides a number of other features, including intelligent caching for your custom data, an import and export facility for content type definitions, and integration with other contributed modules.

Custom field types are provided by a set of optional modules included with CCK (each module provides a different type). The modules page allows you to enable or disable CCK components. A default installation of CCK includes:

  • number, which adds numeric field types, in integer, decimal or floating point form. You may define a set of allowed inputs, or specify an allowable range of values. A variety of common formats for displaying numeric data are available.
  • text, which adds text field types. A text field may contain plain text only, or optionally, may use Drupal's input format filters to securely manage rich text input. Text input fields may be either a single line (text field), multiple lines (text area), or for greater input control, a select box, checkbox, or radio buttons. If desired, CCK can validate the input to a set of allowed values.
  • nodereference, which creates custom references between Drupal nodes. By adding a nodereference field and two different content types, for instance, you can easily create complex parent/child relationships between data (multiple "employee" nodes may contain a nodereference field linking to an "employer" node).
  • userreference, which creates custom references to your sites' user accounts. By adding a userreference field, you can create complex relationships between your site's users and posts. To track user involvement in a post beyond Drupal's standard Authored by field, for instance, add a userreference field named "Edited by" to a content type to store a link to an editor's user account page.
  • fieldgroup, which creates collapsible fieldsets to hold a group of related fields. A fieldset may either be open or closed by default. The order of your fieldsets, and the order of fields within a fieldset, is managed via a drag-and-drop interface provided by content module.

For more information, see the online handbook entry for CCK or the CCK project page.

ปัญหา 'access denied' | ระบบสารบรรณออนไลน์

ปัญหา 'access denied'

  • warning: Creating default object from empty value in /home/kawin/suweb/circular/modules/node/node.module on line 1818.
  • warning: Invalid argument supplied for foreach() in /home/kawin/suweb/circular/modules/taxonomy/taxonomy.module on line 1214.
  • warning: Creating default object from empty value in /home/kawin/suweb/circular/modules/node/node.module on line 1818.
  • warning: Invalid argument supplied for foreach() in /home/kawin/suweb/circular/modules/taxonomy/taxonomy.module on line 1214.
  • warning: Creating default object from empty value in /home/kawin/suweb/circular/modules/node/node.module on line 1818.
  • warning: Invalid argument supplied for foreach() in /home/kawin/suweb/circular/modules/taxonomy/taxonomy.module on line 1214.
  • warning: Creating default object from empty value in /home/kawin/suweb/circular/modules/node/node.module on line 1818.
  • warning: Invalid argument supplied for foreach() in /home/kawin/suweb/circular/modules/taxonomy/taxonomy.module on line 1214.
  • warning: Creating default object from empty value in /home/kawin/suweb/circular/modules/node/node.module on line 1818.
  • warning: Invalid argument supplied for foreach() in /home/kawin/suweb/circular/modules/taxonomy/taxonomy.module on line 1214.
  • warning: Creating default object from empty value in /home/kawin/suweb/circular/modules/node/node.module on line 1818.
  • warning: Invalid argument supplied for foreach() in /home/kawin/suweb/circular/modules/taxonomy/taxonomy.module on line 1214.
  • Document had invalid!
  • warning: Cannot modify header information - headers already sent by (output started at /home/kawin/suweb/circular/index.php:46) in /home/kawin/suweb/circular/includes/common.inc on line 141.
คุณไม่มีสิทธิ์เข้าดูหน้านี้