I have encountered a problem with kirby3 and outputting image names in the frontend.
in my blueprint I have setup the following files field:
preview_image:
label: Voransicht Bild
type: files
help: Das Bild, welches auf der "/news" Seite als Vorschau angezeit wird.
max: 1
In my Template I am trying to output the File name with the following:
<?php echo $page->preview_image();?>
In my Frontend I get this result: “- sample.jpg” even though the image is just called “sample.jpg”.
Why is the dash and space also attached to the filename?