Problem/Motivation

It is helpful to have the block title automatically set so users don't have to think about it every time they want to add a component. But this can make layout builder impossible to use when preview mode is turned off, because all the labels are the same. Even with the patch from this issue applied, multiple blocks of the same type are indistinguishable. We should offer users the option to edit the label, while still keeping a default value and forcing it to be hidden.

Proposed resolution

Create a configuration form where site maintainers can opt into keeping the title field editable.

User interface changes

Add a configuration form for the module.

API changes

Include the configuration service inside the FormAlter class.

Data model changes

Include a configuration schema.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jayhuskins created an issue. See original summary.

jayhuskins’s picture

Issue summary: View changes
elber’s picture

Assigned: Unassigned » elber

Hi can you tell me more details about it please?

jayhuskins’s picture

StatusFileSize
new70.09 KB
new54.05 KB

Basically some websites may want to provide a default title, but still allow users to edit it. Like this:
Administrative title field on inline block form

Here is the proposed configuration form that allows site builder to opt into this feature.
Inline block title automatic configuration form

jayhuskins’s picture

If we really want to make this a robust feature, we could create a permission so that some users can edit this field and other can't.
And as discussed in this issue it would be nice to be make the default title configurable. But at a baseline I think we should provide the option.