@buzzbrothers/datocms-plugin-buzz-media-grid
v0.0.11
Published
This plugin allows you to create some grids with customizable columns and rows count in which you can then draw areas in which to put media (image or video)
Readme
DatoCMS Plugin Buzz Media Grid
This plugin allows you to create some grids with customizable columns and rows count in which you can then draw areas in which to put media (image or video).

Features
- Customizable grid size
- At plugin config level
- At field config level
- At user level (optional)
- Easy area selection (click & drag)
- Multiple custom layouts support (desktop, mobile, etc...)
- Integrated with Dato media selector
Usage
To create a media grid, simply follow these steps:
- Add a
JSONfield - Under
Presentation, chooseMedia grid - Update the columns and rows count if wanted
- Click on
Save field

JSON output
The output of this plugin is a simple JSON that is structured like so:
{
"columns": 6, // count of columns
"rows": 6, // count of rows
"areas": [
{
// a UUID for your area
"id": "573921d1-974b-4ecb-bbfb-dc7e9fad9add",
// {startColumn}, {startRow}, {endColumn}, {endRow}
"position": [0, 0, 2, 3],
// content (image or video) with url
"content": {
"type": "image",
"url": "https://..."
}
},
{
// etc...
}
]
}