Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294331

Allow changing the layout of an existing section in Layout Builder UI

$
0
0

Problem/Motivation

Allow the layout of an existing section to be reconfigured, facilitating a section-to-section mapping for each mapping.

Currently, the workaround for this is to create an additional section with the proper number of columns, and drag each sections' contents into their appropriate replacement(s) manually, then remove the old section. However, there is an opportunity here to automate this process and facilitate that section content migration.

Proposed resolution

Extend the Layout Builder admin UI to facilitate the Section configuration change, with mapping for each section from the existing Section to the new Section layout.

Remaining tasks

Process

Code fixes

  • Determine how to handle the data-loss considerations, per #3134371-14: Allow changing the layout of an existing section in Layout Builder UI:
    But, also, because Section's don't have a way to change the layout plugin configured, the patch is actually deleting the section and adding a new one (with the same components) using a different layout, so I could also see some data getting lost in that process too. If this is the problem, then this probably could be fixed somehow, by either adding to the API of Section or making sure to copy whatever the missing data is as well.

User interface changes

@tbd per UX review, but expected enhancements to Section configuration options.

API changes

@tbd

Data model changes

@tbd

Release notes snippet

@tbd

Original report

Hi,
Is there any way to change a section layout after creating it. I mean, when i "add section" i can choose whether it should use a 1, 2 or 3 column layout, but once the section is created, i can't find a way to change the layout without recreating a new section and moving all my blocks into it.
If it is not possible yet, it would be a great UI improvement !
Thanks


Viewing all articles
Browse latest Browse all 294331

Trending Articles