Thank you for replying, @erez. This issue has been my biggest blocker and I greatly appreciate your help. My repo can be found here.
Notice the configuration guide has their media_folder set to “static/img” at the parent level. I began by dumping all my images into that folder. It worked both on the site and within the CMS admin!
However, I quickly discovered that I had way too many images to keep them organized in one mere folder. Furthermore, everything I was using them for could be compartmentalized by how I was going to use it in the editor. This is the perfect application for individual media_folder’s, which are mentioned within the beta features in the docs.
The aforementioned configuration guide hints that media_collections can be tailored for each collection, but the supplied code uses an empty string (which defaults to the main one). So now I need to figure out how to configure these without its help.
The beta features page seems to suggest that these paths are absolute, so I tried to simply make one of my collection’s media_folder “static/img/competitions”. The idea being that anything related to competitions would be uploaded into that folder. However, when I visit the admin page, the preview starts to often bug out and the uploads appear empty when trying to select one, even after having added them in myself manually.
There is also mention of slug templates like {{media_folder}} that you can use to achieve the effect of relative paths. I also tried this, by setting one of my collections to something like “{{media_folder}}/competitions”. I came across the same errors.
It’s worth noting that Gatsby seems to always be able to find the images when I manually code them into my markdown (though there seems to be a nasty grab-n-dump quirk where folder location isn’t used in identification, so you have to treat each filename as a unique identifier).
The problems I’m having rest solely in the realm of the Netlify CMS admin editor.
Now assuming that I can even eventually get collection-based media_folders to work. I’d like to point out that my project’s structure actually lends itself better to FIELD-based media_folders. If this is a feature, I’d prefer to troubleshoot to get that working, but I don’t seem to see that in the docs. I’ll likely put in a feature request for it (would I do that through the Netlify github repository or the community?).
For example, if you follow along with my config.yml, you’ll see that competitions.image (the logos for various cook-off events) would benefit from pulling from a different folder than say competitions.years.winners.firstPlace (the pictures of previous years’ events’ first place winners).