O'Reilly logo

Drupal 6 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. Navigate to the company type's field-management page at admin/content/node-type/company/fields (Home | Administer | Content management | Company | Manage fields).
  2. Scroll down to the section titled New field.
  3. Add Images and images respectively ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required