-
Book Overview & Buying
-
Table Of Contents
Drupal 6 Theming Cookbook
In this recipe, we will be adding image support to the company node type using the ImageField module.
The ImageField module can be downloaded and installed from http://drupal.org/project/imagefield. It depends on the FileField module which can be downloaded from http://drupal.org/project/filefield.
Once ImageField is enabled, it is available as a CCK field. The following steps detail how we can add image support to the company node type:
Navigate to the company type's field-management page at admin/content/node-type/company/fields (Home | Administer | Content management | Company | Manage fields).
Scroll down to the section titled New field.
Add Images and images respectively to the Label and Field name textfields.
Choose File as the Type of data to store.
Set the Form element to edit the data field to Image.

Click on the Save button to create the field.
In the ensuing field configuration form, set the Number of values option...
Change the font size
Change margin width
Change background colour