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.4. Concept: Modular Content

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.4. Concept: Modular Content

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

Prerequisite knowledge

  • Section 2.3, “Concept: Content Entities and Fields”
  • Section 2.2, “Planning Your Site Layout”

What is modular content?

Given that the content of your site is stored in a database, it is desirable to make the content modular, meaning that certain pages on your site, rather than being edited as a whole page, are instead generated automatically from other content items. For instance, in the farmers market site scenario, you might create individual content items for recipes. If the recipe content items have a field that keeps track of ingredients, then your site could include a composite page that would list recipes, and allow visitors to search for a recipe that contained some particular ingredient they had bought at the market.

Smaller sections of pages can also be generated as composites. For instance, recipe content items could have a field that keeps track of which vendor submitted the recipe (see Section 6.4, “Concept: Reference Fields”), with the vendor details edited in separate vendor content items. This would allow you to do the following on your site:

  • On each Recipe page, there could be an area that displays some information about the vendor that submitted the recipe, such as their name and market stall number.
  • Each vendor page could have a section that lists the recipes they have submitted.

The key idea is that each piece of information is only edited in one place. When vendor information is updated, all recipe pages that display that vendor information are automatically updated; when a recipe is submitted by a vendor, it is automatically displayed on the vendor page. The core Views module is the usual way to use modular content to create composite pages and page sections; see Section 9.1, “Concept: Uses of Views” for more information. Also, view modes are useful for defining different ways to display each content item; see Section 6.10, “Concept: View Modes and Formatters” for more information.

Related topics

  • Section 2.5, “Planning your Content Structure”
  • Section 6.1, “Adding a Content Type”
  • Section 6.3, “Adding Basic Fields to a Content Type”
  • Section 6.4, “Concept: Reference Fields”
  • Section 6.10, “Concept: View Modes and Formatters”
  • Section 9.1, “Concept: Uses of Views”

Attributions

Written by Jennifer Hodgdon.

 

Book traversal links for Tutorials

  • ‹ 2.3. Concept: Content Entities and Fields
  • Up
  • 2.5. Planning your Content Structure ›
CMS

 

All CMS

 

Tuto

 

Tutorials

 

White Paper

 

White Paper

Powered by Drupal

Privacy Policy

Privacy Policy

 

Recent content

  • 11.4. Finding Themes
    2 days 19 hours ago
  • 11.3. Downloading and Installing a Module from Drupal.org
    2 days 19 hours ago
  • 11.2. Enabling and Disabling Maintenance Mode
    2 days 19 hours ago
  • 11.1. Finding Modules
    2 days 19 hours ago
  • Chapter 11. Extending and Customizing Your Site
    2 days 19 hours 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