Paragraphs (stable) title from form options not being applied.

Created on 14 November 2023, about 1 year ago
Updated 11 March 2024, 8 months ago

Problem/Motivation

When trying to use the options in form display to set a custom title for the title and plural title fields, no changes are apparent.

Steps to reproduce

1. Go to form display.
2. Click on the options for a paragraph field using Paragraph (stable). Set a custom Paragraph Title and custom Paragraph Title Plural.
3. Try adding a block and no changes on the form will be apparent.

Proposed resolution

#value was taking the $label instead of $this->getSetting('title')

πŸ› Bug report
Status

Active

Version

1.15

Component

Code

Created by

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

Comments & Activities

  • Issue created by @Meleagyr
  • Made some further improvements so that renaming the field is not needed at all.

  • πŸ‡ΊπŸ‡ΈUnited States msypes

    I've tested both patches and they both work. Nice job(s), thanks!
    Personally, I'm going with #2 at this time. I'm not seeing the advantage of #3, and that version seems to do a little too much. @Meleagyr, perhaps you could explain the use case for #3? Maybe I'm just missing something.

  • πŸ‡ΊπŸ‡ΈUnited States msypes

    Update:
    Actually, there is an issue when a field can take multiple paragraph types. Instead of displaying each paragraph type in the drop button, the displays the Title text for all, so there's no way to distinguish among them. See attached images.

Production build 0.71.5 2024