Sorry, we don't support your browser.  Install a modern browser

Option to limit blocks to layout rows columns#297

Excluding blocks from certain column widths would simplfy block selection for clients.

4 months ago

This would be really useful - for example a Banner block should only be selectable for within a 1/1 column

4 months ago

Very usefull indeed

3 months ago

What would a syntax look like?

fields:
  layout:
    type: layout
    layouts:
      "1/1":
        1/1:
          limit: 1
          fieldsets: banner
      "1/3, 2/3":
        1/3:
          limit: 1
          fieldsets: image
        2/3:
          fieldsets:
            - heading
            - text
            - list

Current syntax without limit:

fields:
  layout:
    type: layout
    layouts:
      - "1/1"
      - "1/3, 2/3"
2 months ago
1

That looks good to me - readable and easy to understand

2 months ago
1

This is also related with: https://kirby.nolt.io/260

With my above syntax suggestion, each column setting so easier.

2 months ago