stu
1
I have this code in the blueprint:
layout:
type: layout
layouts:
- "1/1"
- "1/2, 1/2"
fieldsets:
- image
When I click to create a block, a popup window opens up:
I wonder if it is possible to customize it so that there would only be a single field for uploading an image?
texnixe
2
Do you mean, only Kirby images, not images from external urls?
You can tweak all standard blocks to your liking by overwriting the blueprints/snippets in the site folder/in a plugin
So you wouldn’t customize the layout
field, but the image block.
carox
4
Different but similar.
The layout I wanted doesn’t work as it was supposed. It doubles the fields and I don’t understand where I make an error.
title: Project
columns:
- width: 2/3
sections:
info:
type: fields
fields:
text:
type: blocks
fieldsets:
- heading
- text
- image
- width: 1/3
sections:
info:
type: fields
fields:
withfor:
type: textarea
label: With/for
year:
type: textarea
label: Year
link:
type: url
label: Link
You are calling the section info
in both columns. But section names must be unique. Try using a different name for one of them.