Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Gin Layout Builder

Security covered Under active development 5,365 sites

Part of the GIN ecosystem · 13 projects

This module applies the Gin admin theme's styling to Drupal's Layout Builder. It uses a CSS prefix to prevent conflicts with your site's frontend theme.

Layout Builder in Gin Style.

This module brings the gin admin theme to the layout builder.

Conflicts with your frontend theme.

To avoid conflicts with your frontend theme, the module adds a CSS prefix "glb-" to all layout builder styles.
If your theme uses theme suggestions there could be conflicts with the module theme suggestions from "gin layout builder". To avoid these conflicts add the following code to your hook_theme_suggestions inside your theme.

if (isset($variables['element']['#gin_lb_form'])) {
    return;
}

Develop

Gin layout builder comes with a webpack configuration to builder SCSS styles.
To use them run:

yarn install
yarn dev

Load toastify with composer

To load toastify with composer add

"apvarun/toastify-js": {
  "type": "package",
   "package": {
    "name": "apvarun/toastify-js",
    "version": "v1.11.2",
    "type": "drupal-library",
    "dist": {
      "url": "https://github.com/apvarun/toastify-js/archive/refs/tags/1.11.2.zip",
      "type": "zip"
    }
  }
},

And require "apvarun/toastify-js": "1.11.2" (Thanks @kmonty)

After that switch to composer in gin lb settings.

Overwrite templates.

* Copy the template from the base "templates"
* Add the path to gin_lb_overwritten_themes
* Surrond the attributes inside{{ glb_classes(attributes) }}
To overwrite "glb-" classes just add them to the SASS file and run yarn dev. The POSTCSS processor automatically picks up all "glb-" prefixed class names and adds them to a JSON file, which drupal reads to preprocess the class names inside the glb_classes twig function.

Youtube Video:

https://www.youtube.com/watch?v=aDbZRgY7Xm8&feature=youtu.be

Ask your assistant about Gin Layout Builder

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

3 tracked projects depend on this one

Activity

Tracked releases
11
Tracked since
Mar 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 5
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-rc3 Pre-release 9–10 Mar 17, 2023