Missing toolbar-administration in layout builder

Created on 1 April 2025, 6 days ago

Problem/Motivation

The changes from Gin LB Plus 📌 Gin LB Plus Active meant that the main administration menu disappeared when in layout builder mode.

Steps to reproduce

Install vanilla drupal 11
Install gin_lb:2.0.0
Install gin_toolbar (should install from above dependency)
Install gin:4.0.0 (should install from above dependencies)

Broken state:

Activate the gin theme and go to a page with layout builder enabled, the breadcrumbs menu is now offset and the menu is gone.

Proposed resolution

Add a variable in the preprocess to determine if layout builder is active, and don't include the "JS Fix" from gin, instead, pull in the template.

Fixed state:

I'm not entirely sure of what the state of the LB Plus thing is? but this seems logical to put it back for now? Or if this is the right way to do it.

Remaining tasks

Test?

User interface changes

Admin bar is restored

🐛 Bug report
Status

Active

Version

2.0

Component

User interface

Created by

🇳🇿New Zealand atowl

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

Comments & Activities

  • Issue created by @atowl
  • 🇩🇪Germany Christian.wiedemann

    I assume that the new navigation module is enabled. Can you test it with enabled navigation module. Currently I think we should add this as dependency.

  • 🇳🇿New Zealand atowl

    I tested again with the navigation module enabled, and the problem doesn't exist, but the secondary toolbar gets a bit messy up the top

    So i guess yes? you should make it a dependancy, I personally dislike (strongly) however not being able to set the menu to go horizontal, i've change the MR to check if the core_navigation variable is set in the template, to then include the file. that way it works either way.

    Whats the direction that gin and this module are taking? it appears they are locking us into a vertical only menu?

Production build 0.71.5 2024