Skip to content

Content Types

Content types typically contain the main content of a page on a Drupal site.

Content Entities

According to Drupal.org - Content Entities and Fields:

A content entity (or more commonly, entity) is an item of content data, which can consist of text, HTML markup, images, attached files, and other data that is intended to be displayed to site visitors. Content entities can be defined by the core software or by modules.

Content entities are grouped into entity types, which have different purposes and are displayed in very different ways on the site. Most entity types are also divided into entity sub-types, which are divisions within an entity type to allow for smaller variations in how the entities are used and displayed.

Adding a Content Type

  1. Navigate to Structure -> Content Types. The Content types page appears showing all the available types of content.
  2. Click Add Content Type.

Add Content Type

Field Types

GeneralNumberReferenceText
BooleanList (float)ContentList (Text)
CommentsList (integer)FileText (formatted)
DateNumber (decimal)ImageText (formatted, long)
EmailNumber (float)Taxonomy TermText (formatted, long, with summary)
LinkNumber (integer)UserText (plain)
TimestampOther...Text (plain, long)

Adding Fields to a Content Type

  1. Navigate to Structure -> Content Types. The Content types page appears showing all the available types of content.
  2. Click Manage Fields link in the dropdown for the Operations column.
  3. Click Add field.

Add field

Additional Resources

Questions

What is the process for adding a new content type in Drupal, and what are some examples of field types you can add to a content type?

To add a new content type in Drupal, go to Structure > Content Types, click Add Content Type, and configure the settings. You can add various field types to a content type, including General (e.g., Boolean, Date), Number (e.g., Decimal, Integer), Reference (e.g., Content, Taxonomy Term), and Text (e.g., Plain, Formatted).