plain-solutions-gmbh / kirby-column-blocks

Use columns in block fields based on the layout field.
MIT License
35 stars 0 forks source link

Kirby Column-Block

Overview

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

Features:

Grid block

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

Installation

Manually

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

With Composer

composer require microman/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

MIT

Do you like this Plugin? Buy me a ☕️