Ability to select a less intrusive and automated "Admin title" field behavior in module settings

Created on 18 December 2019, almost 5 years ago
Updated 3 July 2024, 4 months ago

Steps to reproduce

  1. Install Drupal 8.8.0
  2. drush en -y layout_builder
  3. composer require drupal/paragraph_blocks && drush en -y paragraph_blocks
  4. Create some paragraph types and a CT that uses them
  5. See the "Admin title" field among paragraph fields, in node form


Current result

  • When module is enabled, a new "Admin title" field is added to all paragraph
  • User has to define a field value which has no editorial purpose


Expected result


Requirements

  • Admin can choose in module settings (/admin/config/content/paragraph_blocks) global behavior : 
    1. Let editors define "Admin title" field value (with addition of "Admin title" field in paragraph types)- Current behavior - Or
    2. Display an automatically generated "Admin title" in layout builder UI (with no addition of "Admin title" field in paragraph types)- New behavior
  • This setting UI can look like this (I just played in browser DOM) :
  • Automatically generated "Admin title" can follow such rule : 
    • Label of the paragraph field in current content bundle-
      Label of paragraph type -
      Position number of this paragraph, in case of a multiple field
    • Ex : 
      • We have 2 paragraph entity ref fields in a CT
        • Contentis multiple
        • My other unique paragraph field(unique)
      • They display in layout builder UI as
        • Content - WYSIWYG - #1
        • Content - Media - #2
        • My other unique paragraph field - Media

 

Todo

  • Agree on pattern of automated "Admin title" field value
  • Implement feature logic and settings
Feature request
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

🇫🇷France davidferlay

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.71.5 2024