Data types

Fields and data types

The Sloth content type in the previous lesson had fields for name, weight, and birth date. The fields hold different types of data. Names are text. Weights are numbers. Birth dates are, well, dates.

Drupal has lots of field types, to store whatever data you need. Modules add even more, like map coordinates. In this lesson, we’ll look at some of the most common field types.

Field types

When you create a new field, you get to select the field type:

Field types

Drupal core gives you 23 field types.