Menu du compte de l'utilisateur

  • Log in

Navigation principale

  • Home Page
  • All CMS
  • Tutorials
  • White Paper
Home
Guide CMS

Breadcrumb

  • Home
  • Tutorials
  • Drupal User Guide
  • Chapter 2. Planning Your Site
  • 2.3. Concept: Content Entities and Fields

Language selector

  • Français
  • English

Main navigation

  • Home Page
  • All CMS
  • Tutorials
  • White Paper

User login

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
  • Create new account
  • Reset your password

Book navigation

  • Tutorials
    • Drupal User Guide
      • Preface
      • Chapter 1. Understanding Drupal
      • Chapter 2. Planning Your Site
        • 2.1. Concept: Regions in a Theme
        • 2.2. Planning Your Site Layout
        • 2.3. Concept: Content Entities and Fields
        • 2.4. Concept: Modular Content
        • 2.5. Planning your Content Structure
        • 2.6. Concept: Editorial Workflow
        • 2.7. Concept: User Interface, Configuration, and Content translation
      • Chapter 3. Installation
      • Chapter 4. Basic Site Configuration
      • Chapter 5. Basic Page Management
      • Chapter 6. Setting Up Content Structure
      • Chapter 7. Managing User Accounts
      • Chapter 8. Blocks
      • Chapter 9. Creating Listings with Views
      • Chapter 10. Making Your Site Multilingual
      • Chapter 11. Extending and Customizing Your Site

Guy Vigneault

2.3. Concept: Content Entities and Fields

By Guy Vigneault | 2:03 AM EDT, Thu August 14, 2025

Prerequisite knowledge

  • Section 1.5, “Concept: Types of Data”
  • Section 1.2, “Concept: Modules”

What is a content entity?

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 subtypes, which are divisions within an entity type to allow for smaller variations in how the entities are used and displayed. Here is a table of some common content entity types:

Entity typeEntity subtypeDefining ModuleMain uses
Content itemContent typeNode moduleContent intended to be the main page area for pages on the site
 Example: In the farmers market site example, you might have content types for basic pages, vendor pages, and recipe pages.
CommentComment typeComment moduleCommentary added to content entities (typically to Content item entities)
 Example: On a blog site, blog posts might have comments. They are not needed in the farmers market site example.
User profile(none)User moduleData related to a person with a user account (login access) on the site
 Example: Every site has at least basic user profiles with user names and email addresses; social networking sites may have more complex user profiles with more information.
Custom blockBlock typeCustom Block moduleText and images in smaller chunks, often displayed in the site header, footer, or sidebar
 Example: In the farmers market site example, you might put the hours and location in a sidebar block.
Taxonomy termVocabularyTaxonomy moduleUsed to classify other types of content
 Example: In the farmers market site example, you might classify Recipe content with an Ingredients taxonomy vocabulary, with taxonomy terms like Carrots and Tomatoes. In a blogging site, blog posts might be classified using a Tags vocabulary, and perhaps also a Categories vocabulary.
File(none)File moduleAn image or attachment file that is tracked and managed by the site, often attached to other types of content
 Example: In the farmers market site example, both Recipe and Vendor pages might have image attachments, which would (behind the scenes) be managed as File entities by the site.
Contact formForm typeContact moduleA form that lets site visitors contact site owners
 Example: A contact form is needed in the farmers market site example.

What is a field?

Within entities, the data is stored in individual fields, each of which holds one type of data, such as formatted or plain text, images or other files, or dates. Field types can be defined by the core software or by modules.

Fields can be added by an administrator on entity subtypes, so that all entities of a given entity subtype have the same collection of fields available. For example, the Vendor content type in the farmers market example might have fields for the vendor name, a logo image, website URL, and description, whereas the Basic page content type might only have fields for the title and page body. When you create or edit entities, you are specifying the values for the fields on the entity.

Related topics

  • Section 2.5, “Planning your Content Structure”
  • Section 5.2, “Creating a Content Item”
  • Section 6.1, “Adding a Content Type”
  • Section 6.5, “Concept: Taxonomy”
  • Section 7.1, “Concept: Users, Roles, and Permissions”
  • Section 8.1, “Concept: Blocks”

Attributions

Written and edited by Jennifer Hodgdon and Grant Dunham.

 

Book traversal links for Tutorials

  • ‹ 2.2. Planning Your Site Layout
  • Up
  • 2.4. Concept: Modular Content ›
CMS

 

All CMS

 

Tuto

 

Tutorials

 

White Paper

 

White Paper

Powered by Drupal

Privacy Policy

Privacy Policy

 

Recent content

  • 11.4. Finding Themes
    17 hours 26 minutes ago
  • 11.3. Downloading and Installing a Module from Drupal.org
    17 hours 30 minutes ago
  • 11.2. Enabling and Disabling Maintenance Mode
    17 hours 36 minutes ago
  • 11.1. Finding Modules
    17 hours 41 minutes ago
  • Chapter 11. Extending and Customizing Your Site
    17 hours 46 minutes ago

Copyright

Creative Commons

Sauf mention contraire, Guide CMS © 2025 par Guy Vigneault est sous licence Creative Commons Attribution - Utilisation non commerciale - Partage dans les mêmes conditions 4.0 International

 

Creative Commons

Unless otherwise stated, Guide CMS © 2025 by Guy Vigneault is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

eGV Web