Just quickly: in the docs it says to use “label” to label the info-field, however it was actually “headline” I had to use to label the info-field. Maybe it’s a typo in the docs, or it’s just my installation.
Ahhhh! Thanks for the clarification! I’ll withdraw my statement.
But since you’re here, another quick question:
Is it possible to have not a file-selection-box in a structured field, but a file-upload-box? Like the one shown in the second screenshot.
sections:
memberof:
type: fields
fields:
memberof:
label: Mitglied bei
type: structure
fields:
memberoftext:
label: Text
type: textarea
counter: false
buttons: false
memberoflogo:
label: Logo
layout: cards
type: files
size: small
template: image
max: 1
No, you can’t have sections within fields. It wouldn’t make sense anyway, because sections don’t store anything in your content files.
I agree that it could be of advantage to be able to upload an image directly from the files section, but just like we don’t have files sections that can upload to different pages, this would have some downsides, as images might come from different sources.
Yes, of course there are certain downsides to the workflow if a missing image has to be uploaded first, but it’s not as bad as in Kirby 2 anymore, where you had to close the modal first.