Changing layout selection of existing content does not work as expected

Created on 16 June 2023, over 1 year ago
Updated 4 April 2024, 8 months ago

Problem/Motivation

After an entity is created (and a layout selected for it), editing the entity and changing the value of the Layout field does not actually change it. Only after using the Revert to defaults action from the Layout Builder's UI, the layout change is reflected in LB's UI.

Proposed resolution

- disallow changing the Layout field when editing an entity
- add a new Change layout template action to LB's UI, which shows a form where the user can change the layout, and saving the form will also execute the Revert to defaults action under the hood.

Remaining tasks

Review.

User interface changes

- the Layout field is shown as disabled on entity edit forms
- a new action is shown in LB's UI

API changes

Nope.

Data model changes

Nope.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇷🇴Romania amateescu

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

Comments & Activities

Production build 0.71.5 2024