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

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

A Change layout link is added for each section.

API changes

Data model changes

Release notes snippet

Layout builder now facilitates effortlessly changing section layouts and configurations with an intuitive interface that simplifies the entire process and removes the complexities of restructuring layouts. This introduces default mapping for every region and optimises the transition process, guaranteeing a seamless and efficient experience as users shift from existing layouts to new ones.

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 303301

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>