Hi - I want to create a home page carousel gallery
for that I use the files field.
Now I upload files and it creates a nice gallery out of them. cool.
The problem is that I want to add a caption to each file in this gallery…
How can I achieve this? (I don’t want to edit the file blueprint because I use the files field serves in other pages and functions)
can I create a custom field, like the custom block?
Thanks for the replies!
this is my home page yml file: home.yml
title: home
sections:
gallery:
type: fields
fields:
imgs:
label: Images for home gallery
type: files
template: cover
layout: cards
image:
cover: true
projects:
label: cases
type: pages
template: project
the imgs field in the gallery section is a files type. I want only for these files to add a caption.
I use the files field in a different page too - there I want the files to have a different blueprint - a bit more complex. so I dont want all the files in the websites to have the same blueprint.
So - I created a file called cover.yml inside: ‘site-blueprints-files-cover.yml’
this yml file looks like this:
title: cover
fields:
caption:
type: writer
but the file page in the panel still looks like this:
Yes - you can also open the text file for a file in a code editor if you are working locally and manually change the template key in there. Saves re-uploading.