Layout Builder Layouts for Individual Content Items Do Not Appear to be Exported

Created on 9 August 2019, about 5 years ago
Updated 4 December 2023, 10 months ago

Working on a demo instance and thought it would be nice to use Tome to add some default content to the codebase.

The demo uses Layout Builder and I was finding that my layout customizations did not appear to be exported by Tome. This looks to only be the case if the 'Allow each content item to have its layout customized.' option is enabled. The template for all content items does appear to be captured since it is stored as config rather than content. Looking at the json file for a node I'd expect to see some kind of reference to the layout_builder__layout field, but I don't.

Steps to reproduce:

* Install Drupal using the standard profile.
* drush en tome -y
* drush en layout_builder -y
* drush tome:export -y
* Enable Layout Builder for the Basic Page content type.
* Manage the layout for Basic Pages and add the 'Powered by Drupal' block below the body field.
* Create an example basic page.
* drush tome:import -y
* View the example basic page and confirm that the basic page layout is retained.
* Manage the layout for basic pages and enable 'Allow each content item to have its layout customized.'
* Edit the layout for the example basic page and move the powered by Drupal block above the body field.
* drush tome:import -y
* View the example basic page - see that the layout customization for that node has been reverted.

πŸ› Bug report
Status

Closed: won't fix

Version

1.2

Component

Tome (main)

Created by

πŸ‡ΊπŸ‡ΈUnited States brianperry

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.

  • πŸ‡¦πŸ‡ΊAustralia elgandoz Canberra

    BTW, Layout builder get exported almost flawlessly with the core patch provided in the the issue above. Requires a cache-clear after the tome:install. Tested on Drupal 10.1

Production build 0.71.5 2024