Drupal Tutorials > Development > Creating Custom CCK Fields

Creating Custom CCK Fields

categories: Development, Nodes
for Drupal: D6
1

You can create custom CCK fields, widgets, and formatters for any situation, but it can be hard to see how to do it. Here is an 'Example' module that creates a simple field, formatter, and widget, with lots of embedded documentation about what belongs where. You need to create three files, an .info file, an .install file, and the module itself. The code below creates a very simple textfield, but it can be used as a starting point for any custom module. A .zip file with the contents of this custom module also attached.

(Creating Custom CCK Fields >>)

ingridients (modules): cck

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
233 Drupal Tutorials and counting!