Currently trying to get a JSON file with data to display in the Netlify CMS window. I am able to log in to the cms, but I can’t view all of the media that I have in the JSON file.
here is my config.yml:
backend:
name: git-gateway
branch: main # Branch to update (optional; defaults to master)
local_backend: true
publish_mode: editorial_workflow
media_folder: "public/images/"
public_folder: "/images"
collections:
- label: "Project"
name: "images"
format: "json"
extension: "json"
files:
- label: "Images"
name: "images"
file: "/public/projects/images.json"
fields: # The fields for each document, usually in front matter
- {label: "type", name: "type", widget: "string"}
- {label: "id", name: "id", widget: "number"}
- {label: "title", name: "title", widget: "string"}
- {label: "year", name: "year", widget: "string"}
- {label: "description", name: "description", widget: "string"}
- {label: "materials", name: "materials", widget: "string"}
Here is my file structure:
Here is a snippet of my JSON:
{
"type": "sculpture",
"id": 74,
"path": "../src/assets/sculpture/mathJoke1.JPG",
"title": "The Engineer, the Physicist, and the Mathematician (1)",
"year": "2014",
"description": "'I declare this to be the outside.'",
"materials": "Metal, paper"
},
{
"type": "sculpture",
"id": 75,
"path": "../src/assets/sculpture/mathJoke2.JPG",
"title": "The Engineer, the Physicist, and the Mathematician (2)",
"year": "2014",
"description": "'I declare this to be the outside.'",
"materials": "Metal, paper"
},