This plugin for Kirby 4 replaces the block selector with a customized version that displays a preview image for each block.
Please note: If you are using Kirby 3, please install v1.1.2.
Download and copy this repository to /site/plugins/kirby-visual-block-selector
.
composer require junohamburg/kirby-visual-block-selector
git submodule add https://github.com/junohamburg/kirby-visual-block-selector.git site/plugins/kirby-visual-block-selector
assets/block-previews
.assets/block-previews
folder with the same name as the block. For example, the preview image of heading.yml
is heading.png
. Any image format (png, jpg, gif, svg) should work.Tip: You can define fieldset groups for the blocks
field: Kirby docs
:warning: Please note: If there are no preview images for a blocks
field, the default Kirby block selector will be displayed.
MIT