Skip to content

Repository files navigation

Elemental Add New Preview

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.

About

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

Resources

Contributing

Stars

Watchers

Forks

Releases

Contributors

Languages