-
I'm currently facing an issue with organizing images in my media folder. For each post, I often add multiple images and, to avoid filename conflicts, I organize them into subfolders. For example, the path to the images would look like this: However, I've noticed that:
Here are some screenshots for reference: My configuration in media_folder: "assets/images"
public_folder: "/assets/images" You can find the full Currently, in order to use images from these nested folders, I have to manually type the paths in the markdown. While this doesn’t break the build, and the images display correctly on the site, it adds extra manual work. My Questions:
Any guidance or suggestions would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
I am not sure if this is the same as #227 |
Beta Was this translation helpful? Give feedback.
-
#227 is something else: Nested Collections. In Sveltia CMS, it’s possible to use different media folders for different collections (in your case Posts, Personal and Authors), but nested folders are not supported yet. It’s on my todo list. I don’t think Netlify/Decap CMS supports it yet either, but Static CMS, a now-discontinued community fork of Netlify CMS, did. So I plan to provide compatibility before the 1.0 release. |
Beta Was this translation helpful? Give feedback.
-
Shipped v0.42.1 with the fix! |
Beta Was this translation helpful? Give feedback.
-
How do I upgrade to v0.42.1? Do I just refresh the page(tried that) ? I still cant' see the folders. |
Beta Was this translation helpful? Give feedback.
-
Okay, I have checked and it seems to fix these issues These folders now appear when I'm selecting images in the assets section. - ✅ Thank you |
Beta Was this translation helpful? Give feedback.
-
There’s just one small issue I’ve noticed. Currently, the image picker doesn’t display nested folders, so all images—whether in the root or in subfolders—appear together in one list. This makes it hard to tell which images are actually in the root folder versus those that are organized in subfolders. The bigger challenge here is that, without folder separation, the images also don’t seem to be sorted, resulting in a rather random display. As a result, finding a specific image takes more time since I have to sift through the entire list rather than simply navigating to the folder where it’s stored. |
Beta Was this translation helpful? Give feedback.
The fix landed in the latest version.
/assets/images/weather_post/wunderground.png
should appear in the CMS UI now.