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

Hiding fields and labels during display

In this recipe, we will be using the CCK module to hide certain fields and field labels from the company node's display layout. In particular, we do not want to expose the e-mail address field to the end user as we have other plans for it. Furthermore, we do not want anything besides the name of the company and a brief description displayed when in teaser form.

Getting ready

We will be using the company node type created earlier in this chapter.

How to do it...

Browse to the management page of the company type at admin/content/node-type/company/fields (Home | Administer | Content management | Content types | Company) to perform the following steps:

  1. Click on the Display fields tab at the top.
  2. Set the Address, ...

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