I have a page blueprint which is organised into two tabs: content and files.
The content tab is used to collect information related to an artwork, such as the artist, title and year, plus image documentation which can be uploaded as a featured image, or installation views as a blocks image gallery.
The files tab shows all the images which have been uploaded to this page.
When I click the files tab, I want to navigate between all the files in order to be able to add captions to the images, regardless whether or not they have been uploaded as a featured image or in the image gallery block.
Currently the navigation is limited based on the image template, so you can only click through a group of images if the have the same template.
How do I allow the files tab to have navigation between all image templates?
This will allow the user to quickly add a caption to an image, click the navigation to see the next image, add a caption, and so on.
Here is my template:
title: Artwork
navigation:
status: all
template: all
status:
draft: Draft
listed: Published
tabs:
content:
label: Content
icon: page
columns:
main:
width: 3/4
sections:
content:
type: fields
fields:
artist:
label: Artist
type: text
width: 1/2
title:
type: text
disabled: true
width: 1/2
year:
label: 'year'
type: tags
options:
type: query
query: site.index.pluck("year", ",", true)
required: true
width: 1/2
installation_views:
label: 'Documentation: Installation Views'
type: blocks
fieldsets:
- image-gallery
max: 1
help: A selection of the best installation views (max 10.)
works:
label: 'Documentation: Singular Works'
type: blocks
fieldsets:
- image-gallery
sidebar:
sticky: true
width: 1/4
sections:
meta:
type: fields
fields:
featured_image:
label: Featured Image
type: files
uploads: image # defines the template used
max: 1
layout: cards
size: large
required: true
image:
back: black
files:
label: Files
icon: images
columns:
main:
width: 1/1
sections:
files:
headline: Files
type: files
size: medium
layout: cards
info: '{{ file.dimensions }}'
sortable: true
batch: true
limit: 50