Hiding the Body field


show more Hiding the Body field provides you with in-depth training on Web. Taught by Tom Geller as part of the Drupal 6: Online Presentation of Data show less
please wait ...

Hiding the Body field

When we went through the process of creating a custom Content type, we ran into Drupal's two default fields: Title and Body, but we didn't want to use either of them. Technically speaking, you can't get rid of them, however you can hide them to make data entry easier and more user-friendly. We'll start with the Body field, which is easier to get rid of, but first let's take a look at what exactly a Body field is. We'll do so with the node we created in our custom Content type of Person. It has two custom fields as well: Personal name and Family name. To edit this node, click on the Title, and Edit. You remember we can't actually get rid of the Title and we don't have to put anything in the Body. In this case I'm going to put something in the Body just so we can see what happens with content when we get rid of that Body field.

Let's say 'This is me hooray!' Scroll to the bottom, and save it. And if we go to the front page, again as we expect...

Hiding the Body field
Video duration: 2m 46s 6h 8m Intermediate

Viewers:

Hiding the Body field provides you with in-depth training on Web. Taught by Tom Geller as part of the Drupal 6: Online Presentation of Data

Subject:
Web
Software:
Drupal
Author:
please wait ...