Automatically add Paragraphs in field as blocks to default Layout Builder region on creation?

Created on 1 March 2023, almost 2 years ago
Updated 12 May 2023, over 1 year ago

Problem/Motivation

Right now, in order to automatically get Paragraphs to display in the live view you have to have the main field enabled, which creates one "mega block" of all of the different Paragraphs into a single block. You can't separate each individual Paragraph into a separate block and then re-arrange it on the page in Layout Builder this way though. If you want to be able to individually place Paragraphs blocks into different LB regions, you have to manually add each block, one by one. It would be nice to, instead, have those blocks automatically created and added into the default region as soon as you create each Paragraph on the node edit form.

Proposed resolution

Create an option, either site-wide, per content type, or per Paragraphs field (preferred), or even per-node, that allows all Paragraphs in that field to have blocks automatically created and added into the default Layout Builder region. That way, the editor only has to create the Paragraph(s) on the node edit form, then go into Layout and re-arrange them as needed. No searching for the block, adding it, then re-arranging it. If they don't want a particular block to show for whatever reason on the front-end, then they can manually remove it in Layout Builder themselves. If they decide later they did want it, they can search for it and re-add. But I think in most cases, any Paragraph you add you're going to want to display somewhere on the page and so skipping this manual adding step would be user-friendly.

Feature request
Status

Closed: works as designed

Version

3.1

Component

Code

Created by

🇺🇸United States dalemoore

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

Comments & Activities

  • Issue created by @dalemoore
  • 🇺🇸United States dalemoore

    After thinking this through some more, there actually isn't really a "default Layout Builder region". There is usually one created when you create a content type, but you can just delete that and create your own. So there would be no way to assign automatically-created blocks to one because the module wouldn't know what to assign it to, unless it just assigned them to the first section within Layout Builder regardless of what is in it. There are default regions within sections, though. But I'm not sure even that would be worthwhile behavior, because then you'd have to go in and drag and drop the blocks where you actually want them to go—unless a layout could have a "draft" state where they get added to that.

    If someone knows a way to solve this, great! If not, I guess can close as works as designed...

  • Status changed to Closed: works as designed over 1 year ago
  • 🇳🇱Netherlands basvredeling Amsterdam

    @dalemoore I don't think we can create something reliable for this use case. Feel free to reopen any time if new insights prompt you to.

Production build 0.71.5 2024