Problem/Motivation

Allow users to edit the layout builder variant layout from the front end theme. Right when someone is interacting with the layout builder variant layout they have to use the administration theme. This can be a problem if someone is adding blocks which have been customized by the front end theme.

Steps to reproduce

Create a page manager page then select layout builder variant and finally navigate to the layout settings.

Proposed resolution

Remaining tasks

User interface changes

The user should be able to add sections and blocks from the front end theme and have almost the same experience as configuring a layout builder for content entity types.

API changes

Data model changes

Comments

nikathone created an issue.

tim.plunkett’s picture

If Page Manager still defined it's own routes, this would be straightforward. However it currently presents the UI as part of a wizard, using CTools. This would mean showing a single step of the wizard in an entirely different theme. Where would the rest of the UI go? It's a complicated question.

berliner’s picture

It would already help if the blocks would preview in the frontend theme, for example in an iframe.
I would look into this, but I'm not even sure where to start.

berliner’s picture

FYI I started to tinker with a pure frontend-style editing approach (inspired by Panels IPE in D7) here: https://www.drupal.org/project/layout_builder_ipe

This allows to edit layout builder variants in the frontend theme.
In my specific use case this seems to actually work out.