Layout field, image layout - remove background settings

Hello.

I have a layout field, with two layouts ( text and image ).

On the image layout there is just little dropdown menu with background colour choices.

Can I remove / disable that, I can’t see it defined anywhere in the blueprints!

Thanks.

Ian.

Interesting, haven’t seen this before. There doesn’t seem to be an option to disable this, you would have to overwrite the image block component, I guess.

Ok thanks!

I can’t remember what starter kit I used when initially setting up the site, but in config > blocks > image > image.yml there is the ‘back’ setting below:

  image:
    label: field.blocks.image.name
    type: files
    query: model.images
    multiple: false
    image:
      back: black
    uploads:
      template: blocks/image
    when:
      location: kirby

But can’t find that referenced as a property of the file field type, or any mention of that setting in the docs!

Any idea if this is a built in feature, or something that has come from the starter kit?

Thanks!

This is documented here: Files | Kirby CMS, the property is image (as in the list of properties), and back is a sub-option of the image prop.

The selector for the back in the Panel itself seems to be a new feature introduced in K5, as far as I can see. At least I didn’t notice it before.

Thanks!

Bit confused as to whether this ‘background’ setting has a method for fetching it’s value, or this is just a UI feature for the panel so you can see transparent / white images.

Anyway, I’ll ignore it for now and explain to my client to do the same. ( I’m running version 4.5 by the way! )

It’s not stored anywhere but supposed to be just a help for situations e.g. with white SVG files or so. If you want to hide it, custom CSS would be the only way right now.