-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Hi!
I would love it if there was a way where the asset management in Sveltia is expanded by allowing me to manually define categories and folders for items. Currently the only way I found to get items out of the Uncategorized
section is by defining a subfolder as the media_folder
on a collection. However, I also have assets that I would like to categorize manually, for example some PDF documents.
I can imagine a solution here where the first subfolder in assets
would be the categorization? E.g. /assets/documents
would automatically be recognized as a documents
category.
The workaround I can come up with is by defining a documents
collection that doesn't have content, but just defines the media_folder
so Sveltia recognizes it, but that leaves me with a documents
collection that's empty and unused in my editor, which is clutter that I think should be preventable. Example config that would work:
export const Collection = {
label: 'Documents',
name: 'documents',
public_folder: '/documents',
media_folder: '/assets/documents',
create: true
};
(Yes we do some weird stuff with bundeling TS for our config, it's great - love the customizability!)
But this still leaves me with one giant list of documents. What if I want to subdivide this further by having folders?
So:
The feature request is the ability to manually define/assign assets to a section, and letting the UI allow CRUD operations on (sub)folders.
Thanks!