Problem/Motivation

In the closed edit mode, if we have a large number of paragraph items, we can't see a title of a paragraph item.
Sometimes it's easy to see a specific title for a paragraph item.

See the image.

Paragraph title

Data model changes

I search in the $paragraph_item objects, if there's is key with a name of 'title'.
See the patch file.

Comments

tomhollevoet created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, paragraph_title.patch, failed testing.

tomhollevoet’s picture

StatusFileSize
new1.05 KB

Now with correct patch file.

paragraph_title_1.patch

tomhollevoet’s picture

Status: Needs work » Needs review
miro_dietiker’s picture

Please see #2738715: Improve Paragraph collapsed/closed summary
The direction in D8 is that the concept of a label or title does not apply. We dropped that idea when we decided that paragraphs can not be reused.

So we think more we should just pick the value of the "first" text field.
Also we want to keep collapsed paragraphs as compact as possible = single line.

To be discussed anyway.

jeroen.b’s picture

Status: Needs review » Needs work

Hi @tomhollevoet,

The idea is good, the implementation maybe too simple.
It would be great if it's possible to select the field that will be used somewhere in the bundle configuration.

However, isn't the preview mode something you would rather use for this?

bluegeek9’s picture

Status: Needs work » Closed (outdated)
//www.flaticon.com/free-icons/thank-you Thank you for your contribution!

Unfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.