getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.27k stars 167 forks source link

Blocks field: isn't fully disabled #5100

Closed afbora closed 8 months ago

afbora commented 1 year ago

Description

When blocks field is disabled (with translate: false or disabled: true), editable blocks are still editable like text-heading-quote blocks.

To reproduce

Use following blueprint for blocks field:

fields:
  text:
    type: blocks
    disabled: true

Or you can use translate: false on secondary language. Then try to edit the editable fields like text-heading-quote blocks.

Your setup

Kirby Version

3.6.x - 3.9.x

afbora commented 1 year ago

If the block field is disabled, I think all fieldsets in the block field must be set disabled. I haven't found a solution for now.

teichsta commented 1 year ago

thanks @afbora is your comment meant to be a "note-to-self"?

afbora commented 1 year ago

Yes, note to self and team 👍