定制 junohamburg/kirby-visual-block-selector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

junohamburg/kirby-visual-block-selector

最新稳定版本:3.0.2

Composer 安装命令:

composer require junohamburg/kirby-visual-block-selector

包简介

Kirby Visual Block Selector

README 文档

README

This plugin for Kirby 5 replaces the block selector with a customized version that displays a preview image for each block.

Visual block selector

Please note: If you are using Kirby 4, please install v2.1.0. If you are using Kirby 3, please install v1.1.2.

Installation

Download

Download and copy this repository to /site/plugins/kirby-visual-block-selector.

Composer

composer require junohamburg/kirby-visual-block-selector

Git submodule

git submodule add https://github.com/junohamburg/kirby-visual-block-selector.git site/plugins/kirby-visual-block-selector

Setup

  1. Create the block preview images in 480×270 pixel. The images are displayed in a fixed aspect ratio of 16/9.
  2. Create the folder assets/block-previews.
  3. Save the images in the 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

⚠️ Please note: If there are no preview images for a blocks field, the default Kirby block selector will be displayed.

License

MIT

Credits

统计信息

  • 总下载量: 3.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 56
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 56
  • Watchers: 3
  • Forks: 4
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-27