plain/kirby-column-blocks 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

plain/kirby-column-blocks

最新稳定版本:1.2.7

Composer 安装命令:

composer require plain/kirby-column-blocks

包简介

Use columns in block fields based on the layout field.

README 文档

README

Overview

Use columns in block fields based on the layout field! 🤗

Features:

  • Use it as WYSIWYG
  • Use paste (cmd+v) to insert any blocks in your column
  • Use Drag'n'Drop to move contents from outside or inside a column block
  • Customize fieldsets or layouts inside your blueprint in no time

Grid block

Installation

Manually

Download and copy the plugin into your plugin folder: /site/plugins/

With Composer

composer require plain/kirby-column-blocks

Simple use

fields:
  myblock:
    type: blocks
    fieldsets:
      - heading
      - text
      - columns

For the output see the block documentation

Customization

Customize column block for a single block field

Just extend the column block like this:

fields:
  myblock:
    label: Block content
    type: blocks
    fieldsets:
      - heading
      - text
      columns:
        extends: blocks/columns
        fields:
          layout:
            layouts:
              - "1/1"
              - "1/2, 1/2"
              - "1/4, 1/4, 1/4, 1/4"
            fieldsets:
              - heading
              - text

Customize column block globally

Copy columns.yml from site/plugins/column-block/blueprints/blocks/to site/blueprints/blocks/ and edit it.

Customize the output

Copy columns.php from site/plugins/column-block/snippets/blocks to site/snippets/blocks and edit it.

Need help? See this post from the Kirby forum.

License

This plugin is free to use and is published under the MIT license. If you use this plugin for commercial purposes or wish to show your appreciation, support me with a donation.

统计信息

  • 总下载量: 646
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 40
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 40
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-01