I have created a member.yaml and member.html.twig file with some basic text fields like name and age which I am able to print out on the front end by looping over the following which is working fine:
---html
<h1>{{ member.name }}</h1>
<h2>{{ member.age}}</h2>
I want to now be able to uploaded an image per member using the field type of *"file"* not the standard page media as the examples I have seen so far require the user to type the file name into the image field which isn't user friendly. When I use the field type *"file"* and upload an image I can see it being saved into the /users folder in the right place but I don't understand how to print it out.
I have tried following the same syntax as printing out normal text fields but it doesn't work e.g.
---html
<h3>{{ member.image }}</h3>
What I have noticed is the structure is different for the file upload in the group.md file in the users folder:
---html
title: Group
members:
name: 'Bob Smith'
age: '20'
image:
user/pages/01.home/_group/IMG_3850.JPG:
name: IMG_3850.JPG
type: image/jpeg
size: 1142286
path: user/pages/01.home/_group/IMG_3850.JPG
I haven't been able to find anything in the Grav doc about how to do this but I could be misunderstanding how the file upload field is supposed to be used.