I have a structure field which contains a list of Staff Members.
staffmembers:
label: Staff Members
type: structure
sortBy: surname
limit: 20
fields:
firstname:
label: First Name
type: text
width: 1/2
surname:
label: Surname
type: text
width: 1/2
position:
label: Position
type: text
width: 1/1
teacherimage:
label: Profile Photo
type: files
info: "{{ file.filename }}"
multiple: false
On another Subject page I am quering these staff members in my blueprint like this
Name:
label: Staff Contact Name
type: select
options: query
query:
fetch: site.find("our-school/staff-members").staffmembers.toStructure
text: "{{ structureItem.firstname }} {{ structureItem.surname }}"
value: "{{ structureItem.firstname }} {{ structureItem.surname }}"
Is there a way I can output or have access to the ‘teacherimage’ file field as well as the first and last name.