I have set up the following blueprint and want to output the URL of the single image saved via the panel. However, there is no output. All text fields work properly but there’s no output for the filename.
should do it but the output is empty. I do not understand what it is that I’m doing wrong. Maybe someone can shine a little light on why this is and what I need to do to make it work.
Thanks for pointing that out but this of course still outputs nothing since the result is empty. I’d like to know why that is and how to rectify it. Any ideas?
I remember I had a similar thing once, I don’t remember what it was exactly, might be a different thing but try renaming the cover field to something else like coverImage
Thanks. I’d rather do it the correct way, which is probably converting the section into a field.
Would you mind explaining a bit more about this? I couldn’t find anything concrete in the documentation explaining in plain English some of those simple use cases. Most samples appear to use presets and modify certain aspects instead of demonstrating a full page blueprint with columns. I always learn better by example and by understanding the underlying concepts.
Your sidebar setup currently looks like this (shortened)
sidebar:
width: 1/3
sections:
meta:
type: fields
fields:
#... fields here
cover:
type: files
headline:
en: Image
de: Bild
So under sections you have meta and cover, which makes them both sections.
If you indent your cover section to move it inside the fields section, you have a field
sidebar:
width: 1/3
sections:
meta:
type: fields
fields:
# ... fields here
cover:
type: files
label: # a field has a label, not a headline
en: Image
de: Bild
We also have to rename headline to label for a field.
Fantastic, thank you. Your hint regarding converting the section to a field put me on the right track. Good to see your addition confirm my current solution. I’m still confused about sections vs. fields, regarding why I would ever need/want to use a section.
The inner workings of Kirby are confusing in some places, yet I get the impression it’s that way to allow for extreme flexibility. Which is probably useful for advanced solutions but hard to get started with. I’m slowly chewing myself through…