Skip to content
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

Enhancement: Media Library showing content folders. #270

Closed
zivbk1 opened this issue Feb 25, 2022 · 8 comments
Closed

Enhancement: Media Library showing content folders. #270

zivbk1 opened this issue Feb 25, 2022 · 8 comments
Projects

Comments

@zivbk1
Copy link

zivbk1 commented Feb 25, 2022

It seems like there is a feature to show 'content' folders that have images in them.

This has been confusing my editors as they are dropping images in the content folder instead of into static/uploads where media should go for this project. "frontMatter.content.publicFolder": "static/uploads"

Is there a way to strictly limit the folders that the 'Media' tab can show and at the same time get the paths correct to those assets when inserting them into frontmatter, image snippets, etc.?

If I had a preference, I would only let the 'Media' tab in the Dashboard show the editors the contents of the static/uploads folder and not allow them to navigate back up the file tree from there. If they want to make subfolders in uploads and put stuff in there I am okay with that, but anything outside of static is not working well and leading to frustration and extra support.

@estruyf
Copy link
Owner

estruyf commented Mar 7, 2022

Further enhancement for page bundles is required. Think it will be best to check based on the content types that support page bundles. If there is no content type that uses it, the media dashboard should only show the files from the public folder setting.

This issue is related to #282

@estruyf
Copy link
Owner

estruyf commented Mar 7, 2022

Changes that will be implemented:

Opening media dashboard

  • When none of the content types is set to use page bundles, it will only show the public folder
  • When there is at least one content type that is set to use page bundles, it will show all content folders + public folders.

On insert image from your content

  • If the current content supports page bundles, it will show all folders + files (content + public)
  • If the current content does not support page bundles, it will only show folders and files from the public folder

@estruyf
Copy link
Owner

estruyf commented Mar 7, 2022

Also a small change in the folder view, the content folders are highlighted with the letter c.

image

@estruyf
Copy link
Owner

estruyf commented Mar 7, 2022

This is now available in the latest beta.

@estruyf estruyf added this to In progress in v7.0.0 Mar 7, 2022
@estruyf
Copy link
Owner

estruyf commented Mar 17, 2022

@zivbk1 is the latest beta working out for you?

@zivbk1
Copy link
Author

zivbk1 commented Mar 17, 2022 via email

@bwklein
Copy link

bwklein commented Mar 20, 2022

Working with it today and a couple of minor things have come up, but I think that this specific issue is resolved.

@estruyf
Copy link
Owner

estruyf commented Mar 21, 2022

Feel free to open another issue(s) for the minor thing that came up.

@estruyf estruyf closed this as completed Mar 21, 2022
@estruyf estruyf moved this from In progress to Done in v7.0.0 Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

3 participants