estruyf / vscode-front-matter

Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...
https://frontmatter.codes
MIT License
1.95k stars 77 forks source link

Enhancement: support custom taxonomies as filter in Content view #744

Open pauko opened 8 months ago

pauko commented 8 months ago

Is your feature request related to a problem? Please describe. I have to use several taxonomies, for instance, tags, categories, and also a custom taxonomy called "Activities". As listed in Supported filters, the Content view allows for a filtering by tags and categories, but not custom taxonomies.

Describe the solution you'd like Add a filter to the Content view that allows to select a value from a custom taxonomy. I want to have control, for instance, in some setting, to choose, which custom taxonomy should be capable of filtering.

Describe alternatives you've considered Content folders, which support filtering, don't work in my situation, because the "Activities" are user managed. It's a too bad user experience to expect users to edit the configuration files and register new content folders for each added "Activity".

Additional context I came across my finding of issue #743. when I tried to achieve this behavior by using data files, but I didn't manage to use that data in a field - maybe I don't know how, or it's simply not supported; so I turned to custom taxonomies.

estruyf commented 8 months ago

Thanks, @pauko; this is definitely a great suggestion to enhance the content dashboard and its experience.

Content folders, which support filtering, don't work in my situation, because the "Activities" are user managed. It's a too bad user experience to expect users to edit the configuration files and register new content folders for each added "Activity".

This would not be recommended, as that configuration is only intended for FM to know where to find the files, so your solution to use custom taxonomy is indeed a better approach.