Enhancement: Media Library showing content folders. #214

Closed
opened 2026-10-05 02:34:00 +02:00 by adam · 8 comments
Owner

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.

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. <!-- github-sync-id:1149936310 -->
adam closed this issue 2026-10-05 02:34:00 +02:00
Author
Owner

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

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 <!-- github-comment-id:1060954066 -->
Author
Owner

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
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 <!-- github-comment-id:1061069923 -->
Author
Owner

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

image
Also a small change in the folder view, the content folders are highlighted with the letter `c`. <img width="1393" alt="image" src="https://user-images.githubusercontent.com/2900833/157107187-73d434fe-0cde-42e4-8521-8cb1020f2f7b.png"> <!-- github-comment-id:1061070519 -->
Author
Owner

This is now available in the latest beta.

This is now available in the latest beta. <!-- github-comment-id:1061073666 -->
Author
Owner

@zivbk1 is the latest beta working out for you?

@zivbk1 is the latest beta working out for you? <!-- github-comment-id:1070628453 -->
Author
Owner

I am going to do some testing today. I've been more on the backend code
side of some projects lately and wrapped a lot of that up.

Thank you for the ping, I am especially excited to try the new Snippets
feature too!

On Thu, Mar 17, 2022 at 2:31 AM Elio Struyf @.***>
wrote:

@zivbk1 https://github.com/zivbk1 is the latest beta working out for
you?

—
Reply to this email directly, view it on GitHub
https://github.com/estruyf/vscode-front-matter/issues/270#issuecomment-1070628453,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABO6UD22UDN6W5LBXOYJYDLVAL3YXANCNFSM5PI6IDJQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID:
@.***>

I am going to do some testing today. I've been more on the backend code side of some projects lately and wrapped a lot of that up. Thank you for the ping, I am especially excited to try the new Snippets feature too! On Thu, Mar 17, 2022 at 2:31 AM Elio Struyf ***@***.***> wrote: > @zivbk1 <https://github.com/zivbk1> is the latest beta working out for > you? > > — > Reply to this email directly, view it on GitHub > <https://github.com/estruyf/vscode-front-matter/issues/270#issuecomment-1070628453>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABO6UD22UDN6W5LBXOYJYDLVAL3YXANCNFSM5PI6IDJQ> > . > Triage notifications on the go with GitHub Mobile for iOS > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> > or Android > <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>. > > You are receiving this because you were mentioned.Message ID: > ***@***.***> > <!-- github-comment-id:1071094869 -->
Author
Owner

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

Working with it today and a couple of minor things have come up, but I think that this specific issue is resolved. <!-- github-comment-id:1073365648 -->
Author
Owner

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

Feel free to open another issue(s) for the minor thing that came up. <!-- github-comment-id:1073539344 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#214