Show action buttons (as well as preview content toggle) that are on layout builder page

Created on 29 July 2022, over 2 years ago
Updated 6 July 2023, over 1 year ago

Currently it is not possible to toggle the preview content, nor does extra functionality provided by additional modules or patches work since the action buttons do not appear. This patch also doesn't work in combation with this module: [PP-1] Reorder Layout Builder sections Postponed

It would be great if it were somehow possible, and would remove the need to use the layout page at all.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany NWOM

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.

  • 🇳🇿New Zealand john pitcairn

    Playing around with this a bit ... if you are using the Gin admin theme, and Gin Layout Builder module, you can get it working. The module provides an alter hook that will let you specify which routes it should apply to, so:

    function MYMODULE_gin_lb_is_layout_builder_route_alter(bool &$is_lb_route, array $context) {
      if (\Drupal::routeMatch()->getRouteName() === 'entity.node.edit_form') {
        $is_lb_route = TRUE;
      }
    }

    Will get you the Gin layout builder sidebar, with the content/region preview display option widgets in the Gin secondary toolbar. It's a start...

Production build 0.71.5 2024