Open
Description
The Media Asset data model is available on Forestry! We need to load it into Gatsby, and then we can consume that data to populate various website pages with images.
This will be very similar to loading the team member/role data models into Gatsby in #536. Also look at how images are linked to region
and subregion
data models in /gatsby/create-resolvers.js
CodeSee map of relevant files: https://app.codesee.io/maps/public/f72b1f30-3087-11ed-aabd-d3a27bef36f2
Fields:
image
- A string describing a relative file path to the image.caption
- stringattribution
- stringdateUploaded
- datedate
- datealtText
- stringtags
- array of strings? not entirely sure, might need to do some console logging here to see what it is
Checklist
- Sign
/CONTRIBUTORS.md
if new contributor - Add the Media Asset data model in
/gatsby/transform-nodes.js
- Link the Media Asset to the actual image (or pdf) in
/gatsby/create-resolvers.js
- Test it by using the GraphQL explorer to run a graphql query to select all
DAMediaAsset
data and seeing the data show up