webbuilders-group/silverstripe-elemental-add-preview

Extension for dnadesign/silverstripe-elemental that adds a preview popup when adding blocks

Maintainers

Package info

github.com/webbuilders-group/silverstripe-elemental-add-preview

Language:JavaScript

Type:silverstripe-vendormodule

pkg:composer/webbuilders-group/silverstripe-elemental-add-preview

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2026-06-17 20:07 UTC

This package is auto-updated.

Last update: 2026-06-18 12:41:12 UTC


README

Extension for dnadesign/silverstripe-elemental that adds a preview popup when adding blocks

Maintainer Contact

Requirements

Installation

composer require webbuilders-group/silverstripe-elemental-add-preview

Configuration

This module will pull the title and icon of the block using the existing values displayed in the "Add new block" menu. It will also use the class description from the block's configuration to provide a description. It also adds support for a preview_image configuration option on the block. This will then appear at the top of the preview toast when the user hovers over the block in the "Add new block" menu. This should be the path to an image that is a multiple of 242px wide, the path to the image can also use a module syntax for example webbuilders-group/silverstripe-elemental-add-preview: path/to/image.jpg.