-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media library UI #350
Comments
@chadfawcett agreed, this would be a great feature. |
Great feature request, I mentioned a Media Library UI at their CMS redesign discussion as well (#180 (comment)). It's also worth noting, that the Media Library deserves its own link in the primary navigation of the CMS as well as a way to upload multiple images at once. :-) |
If we were to do this, I am wondering if the entry creation implementation should create a separate commit for each file added to a post instead of committing them all in one. (A good side effect of this would be that it would also make the GitLab implementation (#57) easier.) |
While we are already working on media, it might be a good idea to consider the upload location implementation. Some flat-file CMSs and static site generators have found it better to place the media uploaded to a post in the same folder as the post itself, but some have kept media in a separate |
@tech4him1 that all depends on your build tool. If you have other implementation questions, feel free to hit us up on Gitter! |
@carlflor this is a hot issue for the community, curious if you're up for kickstarting it? It's less about UI design and more about allowing images and assets to be managed directly, both on upload and when including an image/asset in an entry. It's closely tied to #432, which is about allowing images and assets to be stored in third party services. Let me know if you're interested! |
@erquhart Okay. I'm still in the process of reviewing the code structure, but I can start working on this. :) |
@carlflor awesome! I'll write up some high level considerations in a bit. |
Below are some points on how the media library implementation could work. OverviewCMS users should be able to view, upload, and delete assets (images and other files) through a dedicated UI. The initial implementation should come in the form of an overlay or dialog to avoid integration concerns with the current UI. Configuration
Points of Access
ImplementationOverlay
Bottom Bar
Search
Assets List
Drag and Drop
File/Image Widgets
Top Nav Button
Future improvements
Feedback welcome! @carlflor is looking into this 🎉, but it's a big undertaking, so please speak up if you'd like to help out! |
This is now underway, WIP PR coming shortly. |
I've been poking around at some existing react media libraries and file managers. I've found the following which may be good for inspiration or may have components we can incorporate. Prior Art
AlternativesI've started some wires for an sidebar folder nav style interface as a possible alternative to the current modal centric approach, that may work better for drag and drop workflows, Netlify CMS - I'm going to try to touch up the existing UX a bit now to make it work sooner rather than later... I'm not sure I'm adept enough at React to start implementing UX from scratch. |
I posted some thoughts and mockups on the media library UI over here. |
@dopry although assets are obviously files, we want to try to abstract away from making this a folder tree interface as much as possible. Your screengrab in Lucid is exactly what I meant in the Future Improvements section of my requirements comment above - having assets in collections, just like other content. I'm thinking we'll stay away from nesting collections, but otherwise it looks like we're on the same page. |
- Do you want to request a feature or report a bug?
feature
- What is the current behavior?
If you want to use an image that is already on the site, you must upload the image again when creating a new collection item. If the name of the image is the same, it overwrites the existing images (see #247)
- What is the expected behavior?
Users should be able to choose from images that have already been uploaded to the website. The UI could display images from the
media_folder
and allow for selecting them.The text was updated successfully, but these errors were encountered: