From this blueprint:
sidebar:
width: 2/3
sections:
# we need a field section here
fieldsection:
type: fields
fields:
# a files field to select an image
featured:
label: Featured Image # fields have labels, not headlines
type: files
max: 1
I would like to echo the featured image’s URL. The idea is that the editor uploads all images from the project and then selects one from the group to show as featured image.
The file name is being printed on the project.txt file, and I can echo it, but I cannot turn it into a URl so that it can be embedded as source. What am I doin wrong?
I have tried:
$page->featured()->url()
$page->images($works->featured())->url()
and many other configuration, yet I cant access the URL