Easy Layout
Version 0.2.1
December 4, 2026
- Rendering the grid field now fetches all its entries' widths/positions in one batched query instead of three separate queries per entry, so pages with many blocks load faster.
- Removed the "New Button Label" field setting and its leftover
<span>in the markup; it never actually labeled a button and had no effect. - The field settings now reject a default width smaller than the minimum width, instead of silently allowing new blocks to render narrower than the stated floor.
Version 0.2.0
December 4, 2026
- Dragging or resizing a block now automatically closes any empty row it leaves behind, instead of leaving a gap in the grid.
- The Live Preview/preview iframe now refreshes once a drag or resize has finished saving, instead of staying stale until the next manual refresh.
- Added
craft.easyLayout.getY(entryId), so a front-end template can tell which row a nested entry was placed on and break onto a new line between rows. - Documented an existing assumption in
getBootstrapClasses(): each row is expected to start on its own line, so offsets are never carried over from a previous row. - Added a Node-based self-check for the new row-compaction logic, run in CI alongside the existing PHP tests.
Version 0.1.1
December 3, 2026
- Security:
easy-layout/input/render-inputnow checks that the current user can view the requested element before rendering it. Previously any authenticated control panel user could render another element's field input (and, as a side effect, grant themselves authorization to reorder its nested entries) by guessing its ID. - Removed the GridStack CDN dependency;
gridstack-all.js/gridstack.min.cssnow ship with the plugin, so the field no longer depends on a third-party CDN being reachable. - Fixed nested Easy Layout Grid fields (a grid inside another grid's entry) not initializing when opened from a slideout after the first page load.
craft.easyLayout.getBootstrapClasses()no longer re-queries every sibling entry on every call; the sibling lookup is now cached per field/owner for the request.- Removed dead CSS and the now-unused settings asset bundle left over from earlier field-settings code.
- Added test coverage for the grid width/offset clamping and scaling math, plus a CI workflow that runs it.
Version 0.1.0
December 2, 2026
- Replaced the Easy Layout Meta field model (
start/end/width/offsetJSON stored on the entry) with a GridStack-based drag/resize grid. Width, x and y now live in their owneasylayout_widthstable, read and written through a newWidthService. - Editors can drag to reposition and resize nested entries directly on the grid; changes are saved via a new
easy-layout/input/save-layoutaction and kept in sync with Craft's own nested-element order. - Added
craft.easyLayout.getBootstrapClasses(entryId)for rendering a stored layout as Bootstrap column/offset classes on the front end. - Removed the now-unused Easy Layout Meta field, its settings controller, entry sidebar and related templates/JS.
Version 1.0.0-alpha.2
August 19, 2025
- Cleaned up unused _settings.twig template
Version 1.0.0-alpha.1
August 19, 2025
Easy Layout Meta
- Goal: Storing layout data per entry
- Settings: None
- Behaviour:
- Custom Json field
- No multi-instance
- (planned) layout values (x, y, w, h)
Easy Layout Grid
- Goal: Enhance the matrix field experience by allowing to resize and move cards. The data is then stored on the appriopriate metadata field
- Fields: Select Metafield, Entry Types, minEntries, maxEntries, Enable versioning, New button label, Grid size*, Minimal width, Default width
- Behaviour:
- Extends the matrix field, only entry types that have the selected Metafield are allowed.
- (Planned) Renders the cards of the selected entries in a gridstack element. Allowing to give resize and move the entries.