Skip to content

Kirby 3 plugin: disables blocks in layout fields when the column width does not match the block requirements

License

Notifications You must be signed in to change notification settings

rasteiner/conditionalblocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Conditional Blocks plugin

Installation

Download

Download and copy this repository to /site/plugins/conditional-blocks.

Git submodule

git submodule add https://github.com/rasteiner/conditionalblocks site/plugins/conditional-blocks

Composer

composer require rasteiner/conditionalblocks

Blueprint Example

fields:
  layout:
    type: layout
    layouts:
      - "1/1"
      - "1/2, 1/4, 1/4"
      - "1/6, 5/6"

    requires:
      min:
        1/3:
          - image
          - video
          - code
      max:
        1/2: text

    fieldsets:
      - text
      - image
      - video
      - code

License

MIT

About

Kirby 3 plugin: disables blocks in layout fields when the column width does not match the block requirements

Resources

License

Stars

Watchers

Forks

Packages

No packages published