Add title field as disabled

Created on 15 August 2023, 10 months ago
Updated 6 June 2024, 10 days ago

Problem/Motivation

When this module is enabled on a site, it adds the title field to manage display for all content types by default. When it's in the normal field display, it does not appear ( Need to enable field_layout).

If layout builder is enabled and already showing the title, another title is added.

Steps to reproduce

Install module on a site that already has layout builder configured for content types.
See duplicate titles on content after install.
Placing title field in manage display fields does not show the title.

Proposed resolution

Set title region to hidden by default.

✨ Feature request
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @mortona2k
  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle
  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle
  • Merge request !22Default title field to hidden β†’ (Open) created by mortona2k
  • Status changed to Needs review 18 days ago
  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

    This change just sets the title's region to hidden. This makes it so that the title field is not automatically added to the display.

  • Pipeline finished with Failed
    18 days ago
    Total: 138s
    #185437
  • πŸ‡©πŸ‡ͺGermany donquixote

    I very much support this issue.
    The fact that the base fields are enabled by default is a show-stopper for this module on existing websites.

    The solution proposed here seems to work in initial tests.
    I have not done in-depth testing yet.
    Also, I am not sure about BC impact on sites that already use this module.

    And this needs tests.

  • Status changed to Needs work 10 days ago
  • πŸ‡¬πŸ‡§United Kingdom AdamPS

    In Node::baseFieldDefinitions() the title field is set to be displayed. Therefore, without this module, when a content type or view mode is added, the title is displayed.

    The current code has the same behaviour with this module. I believe the patch would break that.

Production build 0.69.0 2024