Adding image support using the ImageField module
In this recipe, we will be adding image support to the company
node type using the ImageField module.
Getting ready
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.
How to do it...
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 atadmin/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...