Do not automatically add a body field to content types in the minimal profile

Created on 17 March 2022, almost 3 years ago
Updated 18 April 2023, over 1 year ago

Problem/Motivation

Many Drupal site builders habitually remove the default body field, especially when using a module like Paragraphs. For these Drupal power users, it would be convenient if the body field was only added automatically when using the standard install profile but not in the minimal install profile.

Proposed resolution

Add a new setting to the node module which controls whether a body field is automatically added to new content types.

User interface changes

None.

API changes

None.

Data model changes

A new configuration value will be added to the node settings configuration object.

Release notes snippet

A body field will not be automatically added to new content types on new sites that do not use the standard install profile. Additionally, users may add $config['node.settings']['add_default_body_field'] = FALSE to their settings file to prevent a body field from being added to new content types on their existing sites.

Feature request
Status

Needs work

Version

10.1

Component
Node system 

Last updated 4 days ago

No maintainer
Created by

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024