Implement Layout builder

Created on 6 November 2024, about 2 months ago

Problem/Motivation

It was decided that Layout Builder will be used within Drupal CMS to provide entity display modes and to allow adding overviews pages that are nodes themselves (using overrides).

Proposed resolution

  • Implement layout builder for full and teaser view modes
  • Look in to setting this up with config actions
  • As an aside, change the content field to the body field to match the content strategy
πŸ“Œ Task
Status

Active

Component

Track: Blog

Created by

πŸ‡§πŸ‡ͺBelgium L_VanDamme

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

Merge Requests

Comments & Activities

  • Issue created by @L_VanDamme
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    @l_vandamme are there any blockers to this?

  • Pipeline finished with Failed
    30 days ago
    Total: 1219s
    #350636
  • Pipeline finished with Canceled
    30 days ago
    Total: 111s
    #350694
  • Pipeline finished with Canceled
    30 days ago
    Total: 63s
    #350695
  • Pipeline finished with Failed
    30 days ago
    Total: 1631s
    #350697
  • Pipeline finished with Failed
    30 days ago
    Total: 1637s
    #350696
  • πŸ‡§πŸ‡ͺBelgium L_VanDamme

    @phenaproxima There's some tests failing but I don't think it is blog related. Let me know if there is something to fix.

    Side note, I enabled layout builder and overrides for basic pages because we will need it to set up overviews that way. We can not use it at this point because core causes some issues when trying to import serialized layout builder sections (see https://www.drupal.org/project/drupal/issues/2942975 πŸ“Œ [PP-1] Expose Layout Builder data to REST and JSON:API Postponed ). Depending on how much we want this way of working in v1, we might need to add some pressure there.

  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Two questions:

    • Looks good, but why were Blog's entity view and form displays removed?
    • Are we planning to implement LB in any other content types? If not, we should probably do this change in the Page recipe only.
  • πŸ‡§πŸ‡ͺBelgium L_VanDamme

    @phenaproxima As I understood it, we are planning to use layout builder on all content types. 1 thing that is in contention still is whether we'll be using the layout builder overrides for overview pages.

    As for the view and form displays, I moved them to the recipe.yml as config actions to allow them to be overridden without causing issues when reapplying the recipe. This was due to a discussion about when we should allow for these kind of changes and when not, and the way I see it, if there's recipes in drupal_cms (or in a future version of it) that would alter the config, it might be better to have it as config actions and so allow overrides.
    Let me know if this doesn't make sense.

  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    As for the view and form displays, I moved them to the recipe.yml as config actions to allow them to be overridden without causing issues when reapplying the recipe.

    No need to do this. The strict: false flag (or selective strictness) will fix it. See the documentation at https://www.drupal.org/node/3478662 β†’ . Can you revert that change?

  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts
  • Pipeline finished with Failed
    28 days ago
    Total: 1220s
    #352801
  • Pipeline finished with Failed
    28 days ago
    Total: 1230s
    #352800
  • πŸ‡§πŸ‡ͺBelgium L_VanDamme

    @phenaproxima I moved the entity displays back to the config folder (will do so for news as well in that ticket) and fixed the related blog posts view while I was at it.

  • Pipeline finished with Failed
    28 days ago
    Total: 1402s
    #352813
  • Pipeline finished with Failed
    28 days ago
    Total: 1435s
    #352812
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    As I understood it, we are planning to use layout builder on all content types.

    We won't have overrides enabled for all, only basic page. But we will use it for other content types to customise the default display.

  • Pipeline finished with Failed
    24 days ago
    Total: 614s
    #356594
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    This seems fine to me but I believe there was a crossed wire or two with regard to field_image (which is gone) and field_featured_image (which replaced it).

    Otherwise I'd say this is RTBC.

  • πŸ‡¦πŸ‡ΊAustralia pameeela

    Discussed with @phenaproxima and the field name is definitely a mistake, let's get it merged with the updated/agreed field_featured_image.

  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    There you go, right from Pam - it's RTBC.

  • Pipeline finished with Canceled
    23 days ago
    Total: 180s
    #356910
  • Pipeline finished with Failed
    23 days ago
    Total: 804s
    #356915
  • Pipeline finished with Failed
    23 days ago
    Total: 562s
    #356936
  • Pipeline finished with Skipped
    23 days ago
    #356966
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Great! Now the rest of our content types are unblocked. Merged into 0.x.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024