Download the PHP package junohamburg/kirby-block-preview-fields without Composer
On this page you can find all versions of the php package junohamburg/kirby-block-preview-fields. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download junohamburg/kirby-block-preview-fields
More information about junohamburg/kirby-block-preview-fields
Files in junohamburg/kirby-block-preview-fields
Package kirby-block-preview-fields
Short Description Kirby Block Preview Fields
License MIT
Informations about the package kirby-block-preview-fields
Kirby Block Preview Fields
This plugin for Kirby 3 displays the block fields directly in the block preview, including tabs.
Inspired by the Kirby Fields Block, but this block preview supports tabs and the design aligns more closely with the Kirby UI.
Please note: In Kirby 4, there is now a native implementation of preview: fields, see https://getkirby.com/releases/4.0#block-field-improvements.
Installation
Download
Download and copy this repository to /site/plugins/kirby-block-preview-fields.
Composer
Git submodule
Setup
In your custom block blueprint:
- Add
preview: fieldsto display the block fields. - Add
wysiwyg: trueto prevent the drawer from opening automatically after creating a new block.
Example: site/blueprints/blocks/custom-block.yml
Available options
- Hide block icons. This is helpful if you are using our Kirby Visual Block Selector.
- Disable equal height tabs. By default, the largest tab sets the overall height, so there are no jumps when switching between tabs.
site/config/config.php
Please note: These options apply to all block previews. It is currently not possible / very difficult to add custom options to block previews.
Known issues
- This block preview uses the
angle-downicon to expand a collapsed block preview. The Kirbylayoutfield uses theangle-downicon to open a dropdown with options.
License
MIT