Allow custom paths without slug segment to store images #283
NoelOConnell
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Hey! As of now, this is not possible since Keystatic depends on that slug structure/hierarchy to work out what image belongs to what entry when reading from the file system. However, this is something that could potentially be implemented in the future. For right now though, you'd need to manually (or via a script) update the path to all those images to mirror the post slug. Converted this to a discussion so we can continue the conversation here 👍 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an existing site with 300+ posts that I'm trying to migrate from Netlify CMS to Keystatic.
In the existing app all blog post images are stored like this
public/assets/posts/[image name].ext
I have setup my
image
field like this:However, when I add a new post the image is saved in
public/assets/posts/[post-slug]/[image name].ext
Is there anyway to stop the folder matching the post slug from being created?
Beta Was this translation helpful? Give feedback.
All reactions