Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Extended default preview for custom blocks#526

Writing custom blocks is a common practise for our projects.
Often it comes in very handy that it is possible to write custom preview layouts for the panel.
But most of the time we only need some kind of default preview and do not want to write custom layouts so we would like to make a suggestion:
Kirby could have a default preview based on the field types the custom block is containing, if there is no label set.

Similar behaviour can be found in other CMS like for example the Craft CMS Matrix blocks. In this case it is even editable but in my opinion just display the structured data could be helpful.

a year ago
4

After a short discussion in Discord, @Tobias recommended this plugin: https://github.com/jongacnik/kirby-fields-block
I understand the approach of Kirby having a small footprint, but wouldn’t this Plugin in the core make most of the Kirby projects simpler in the long run? You would not need to write custom templates then.

a year ago

I think this is a duplicate of https://kirby.nolt.io/216 which will be in v4 (pretty much the plugin you linked to)

a year ago
Merged into Fields preview for Blocks/Layout#216
a year ago