Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
19.17 KB
MD5: 5f73ffb6750d9154d202a6776e6322cc
SHA-1: d3b63f1cada4d64db9de92fce4a285cb39030a3b
SHA-256: bb733c73746e21a74bd91e42943305b9bf08ee12b8d913122481ccb9ea79606f
Download zip
23.88 KB
MD5: 592eecfd098b71dff28c7f1e4d7fb501
SHA-1: cfa8b5c538285f9bbb8b74af63a2228cd20ca08b
SHA-256: 0ab7ba18c338503503d537a14da06afdc63029b3bfd6f1438684271a1ca25677
Release notes
Adds a "Define grid" button to every Layout Builder region. Editors can build a multi-row CSS Grid template via a lightweight frontend modal — no page reload required.
Features:
- Row-based grid editor (1–6 rows, 1–6 columns per row)
- Live preview inside the modal
- Grid applied immediately in the Layout Builder editor
- Frontend rendering via hook_preprocess_layout() with responsive breakpoint (1024px)
- LCM-based column math for rows with different column counts
- CSRF-protected AJAX save endpoint
- Drupal State API storage (not config sync)
- Bootstrap Layout Builder compatible
- Backward compatible with legacy single-column configs
Requirements:
Drupal 10 or 11, Layout Builder (core)