How do I set the display suite default region for newly created fields?

Created on 2 September 2022, almost 2 years ago
Updated 23 December 2023, 6 months ago

What needs to be done:

Newly created fields in any content type should go to the hidden region of the DS Layout.

Short background:

In our project we use the Display Suite module, and we have the following custom layout that is used for all the content types.

Steps to reproduce

Create the following layout in your custom theme:

project_layout:
  label: Project layout
  category: Display Suite
  class: '\Drupal\ds\Plugin\DsLayout'
  type: partial
  template: ds_layouts/project_layout/project_layout
  icon: ds_layouts/project_layout/project_layout.png
  regions:
    header:
      label: Header
    left:
      label: Left
    middle:
      label: Middle
    right:
      label: Right
    comments:
      label: Comments
    footer_top:
      label: Footer top
    footer_middle:
      label: Footer middle
    footer_bottom:
      label: Footer bottom

If a new field is added it always goes to the header region.

What I have tried that does NOT work:

1. Setting

default_region: hidden

2.Setting

default_region: disabled

3. Creating new region called test and placing it before the header region.
In that scenario, the new fields go to the "test" region. In a way this is a workaround, but there should be better solution.

πŸ’¬ Support request
Status

Closed: won't fix

Version

3.0

Component

Field UI

Created by

πŸ‡§πŸ‡¬Bulgaria ovidenov

Live updates comments and jobs are added and updated live.
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.69.0 2024