junohamburg / kirby-visual-block-selector

A customized block selector that displays a preview image for each block.
MIT License
42 stars 2 forks source link

Disable picker per field #1

Closed tobimori closed 1 year ago

tobimori commented 1 year ago

I use the Blocks field for several things:

For the second purpose, it'd be cool to be able to toggle the preview via a Field prop.

SebastianEberlein-JUNO commented 1 year ago

Thanks for your feedback!

Unfortunately, adding a custom field property like layout: cards is not passed from the blueprint to the Vue component. The Kirby pages API seems to ignore any custom property.

But we just released an update that might help you: If no preview images exist for the corresponding blocks field, the default Kirby block selector is displayed.

tobimori commented 1 year ago

Awesome, thanks for the update! This also solves my issue, so I'll close this.