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:
Click on the Display fields tab at the top.
Set the Address, Phone, and E-mail address fields to be excluded from the teaser view by enabling their Exclude checkboxes next to the Teaser column.
Set the E-mail address field also to be excluded from the Full node view by enabling the appropriate Exclude checkbox...