Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
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, there is the Title, the Body, and our two custom fields. Now, I'm going to go to Administer > Content management > Content types. Then click to edit the Person type. Once again, we scroll down to Submission form settings where we can change the field label of the Title and the Body. But you see this little orange asterisk up here that tells you that you can't actually get rid of the Title field label. In the Body field label, if you get rid of this label entirely, it not only gets rid of that label but also the entire field from visibility.
There is an explanation for that underneath here: "To omit the body field for this content type, remove any text," so, let's do that. We'll remove it, scroll to the bottom, and Save the content type. Now, here is the trick. When we go back to our front page, we see the Title and the Body information is actually still there. Let's go and edit that node by clicking on Title and Edit. That's what's actually changed. It didn't get rid of the information in the Body field. Instead it got rid of the space in the form where you could enter information. So what that means is if we had something in the Body field, we now can change it.
I'm going to click on Save to get out of this node, go back to our Content type by clicking on Administer > Content management > Content types. Once again we edit the Person Content type, scroll down to Submission form settings, and I want to show that Body field. For our purposes it's what we want to do, so I'm going to change it to "Notes about this person." Scroll to the bottom, and save the content type. Now if we go back to that node and edit it in the same way, you will see we can now edit that information again, and we have this more useful information telling us what exactly to enter in that field.
That's also true not only when you're editing a node, but when you create a new node of that Person Content type. You see that Notes about this person right there.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.