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 6. Setting Up Content Structure
  • 6.7. Adding a Reference Field

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
      • Chapter 3. Installation
      • Chapter 4. Basic Site Configuration
      • Chapter 5. Basic Page Management
      • Chapter 6. Setting Up Content Structure
        • 6.1. Adding a Content Type
        • 6.2. Deleting a Content Type
        • 6.3. Adding Basic Fields to a Content Type
        • 6.4. Concept: Reference Fields
        • 6.5. Concept: Taxonomy
        • 6.6. Setting Up a Taxonomy
        • 6.7. Adding a Reference Field
        • 6.8. Concept: Forms and Widgets
        • 6.9. Changing Content Entry Forms
        • 6.10. Concept: View Modes and Formatters
        • 6.11. Changing Content Display
        • 6.12. Concept: Image Styles
        • 6.13. Setting Up an Image Style
        • 6.14. Concept: Responsive Image Styles
        • 6.15. Concept: Text Formats and Editors
        • 6.16. Configuring Text Formats and Editors
      • 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

6.7. Adding a Reference Field

By Guy Vigneault | 1:36 AM EST, Sat January 24, 2026

Goal

Add a reference field so that recipes can be linked to the vendor that has submitted it.

Prerequisite knowledge

  • Section 6.3, “Adding Basic Fields to a Content Type”
  • Section 6.4, “Concept: Reference Fields”
  • Section 6.1, “Adding a Content Type”

Site prerequisites

The Recipe and Vendor content types must exist. See Section 6.1, “Adding a Content Type”.

Steps

  1. In the Manage administrative menu, navigate to Structure > Content types (admin/structure/types). Then click Manage fields in the dropdown button for the Recipe content type. The Manage fields page appears.
  2. Click Create a new field. The Add field page appears. Choose the Reference field type from the Choose a field type options. Click Continue. The Add field page appears with a form to configure the field label.

    Adding a reference field to a content type

  3. Fill in the fields as shown below. Click Save and continue.

    Field nameExplanationValue
    LabelThe title you want to give the fieldSubmitted by
    Choose an option below:Type of content to referenceContent

    Adding a reference field to a content type

  4. The page Submitted by appears which lets you set the allowed number of values. Fill in the fields as shown below. Click Save settings.

    Field nameExplanationValue
    Type of item to referenceOption to select the type of referenced entityContent
    Allowed number of valuesSpecify the count of values associated with the fieldLimited, 1

    Storage configuration of a reference field

  5. The page Submitted by settings for Recipe appears which allows you to configure the field. Fill in the fields as shown below. Click Save settings.

    Field nameExplanationValue
    LabelTitle shown for this field on the pageSubmitted by
    Help textBrief text aiding the person creating contentChoose the vendor that submitted this recipe
    Required fieldWhether a value has to be provided or notChecked
    Reference type > Reference methodOption to select reference methodDefault
    Reference type > Content typeSpecify the content typeVendor
    Reference type > Sort bySorting fieldVendor name
    Reference type > Sort directionSorting orderAscending

    Settings for a reference field

  6. The Submitted by field has been added to the content type.

    Manage fields page for the Recipe content type

Videos

Adding a Reference Field

Attributions

Written and edited by Boris Doesborg, and Jojy Alphonso at Red Crackle.

 

Book traversal links for Tutorials

  • ‹ 6.6. Setting Up a Taxonomy
  • Up
  • 6.8. Concept: Forms and Widgets ›
CMS

 

All CMS

 

Tuto

 

Tutorials

 

White Paper

 

White Paper

Powered by Drupal

Privacy Policy

Privacy Policy

 

Recent content

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