Allow Lorem Ipsum/Devel to be configurable in Layout Builder

Created on 8 November 2019, over 5 years ago
Updated 10 April 2023, about 2 years ago

There needs to be something in between toggling "Show content preview" and the amount of characters displayed by lorem ipsum/devel when working with multiple fields.

It's nice to have the content preview so you can confirm that any labels are completed but not have it followed by paragraphs of text

✨ Feature request
Status

Active

Version

9.5

Component
ExtensionΒ  β†’

Last updated about 2 hours ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States laura.gates

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.

  • πŸ‡¨πŸ‡¦Canada earthangelconsulting

    I understand that Drupal is continuing to evolve but... has this issue actually not made it into a priority list anywhere? The first time I tried Layout Builder in Drupal 9, this problem seemed really obvious to me too!

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

    I think this actually belongs in the devel module.

    This definitely isn't an extension system.

    Moving it to layout builder for now because the devel module doesn't support issues.

  • πŸ‡³πŸ‡ΏNew Zealand quietone

    This does look like an issue for Devel. An issue for Devel, then an issue can be made at https://gitlab.com/drupalspoons/devel/-/issues/new.

    There has been only 1 comment supporting this feature, so this could be closed for lack of interest.

    I am setting the status at Postponed (maintainer needs more info) to determine if there is interest in adding this to the layout builder module. If we don't receive additional information to help with the issue, it may be closed after three months.

  • πŸ‡³πŸ‡ΏNew Zealand danielveza Brisbane, AU

    I don't believe this is a Layout Builder issue, it's just that Layout builder is exposing this.

    If I understand it correctly, the issue thats raised here is that too much sample text is being generated by textarea fields when placed in Layout Builders default layout. We can trace this down to either StringLongItem::generateSampleValue or TextItemBase::generateSampleValue (based on field type) that both call Random::paragraphs() without a parameter, which means it will generate 12 paragraphs of sample text.

    As quietone mentioned, there isn't a lot of activity here to explore making this change at the moment, but just leaving this here as a reference point in case people are interested in exploring this change.

Production build 0.71.5 2024