Feedback: move taxonomy.tags/categories/et alii to the .frontmatter subdirectories or the db #445

Closed
opened 2026-10-05 02:47:47 +02:00 by adam · 2 comments
Owner
"frontMatter.taxonomy.tags": ["lots", "of", "tags"],
"frontMatter.taxonomy.categories": ["some", "categories"]

I realized these two config items are dynamically updated on content changes. Others for frontmatter values I am not using probably too. If the use of this is to fill dropdowns and keep an index of content, wouldn't it be a better place for them to be either in their own files under .frontmatter/config/taxonomy or even within .frontmatter/content/taxonomyDb.json and categoryDb.json? Updating the config file on content changes feels counterintuitive for the concept of a CMS. Especially non-hierarchical taxonomies might get updated every single time new content is added.

``` "frontMatter.taxonomy.tags": ["lots", "of", "tags"], "frontMatter.taxonomy.categories": ["some", "categories"] ``` I realized these two config items are dynamically updated on content changes. Others for frontmatter values I am not using probably too. If the use of this is to fill dropdowns and keep an index of content, wouldn't it be a better place for them to be either in their own files under `.frontmatter/config/taxonomy` or even within `.frontmatter/content/taxonomyDb.json` and `categoryDb.json`? Updating the _config_ file on _content_ changes feels counterintuitive for the concept of a CMS. Especially non-hierarchical taxonomies might get updated every single time new content is added. <!-- github-sync-id:1651867779 -->
adam closed this issue 2026-10-05 02:47:47 +02:00
Author
Owner

Are you reading my mind @davidsneighbour 😄. I was thinking about that last week, but I hadn't come up with a solution yet, but you just did.

I love the taxonomyDb.json idea. It makes sense now that I just moved the mediaDb.json to a database folder.

Are you reading my mind @davidsneighbour 😄. I was thinking about that last week, but I hadn't come up with a solution yet, but you just did. I love the `taxonomyDb.json` idea. It makes sense now that I just moved the `mediaDb.json` to a `database` folder. <!-- github-comment-id:1495476797 -->
Author
Owner

The tags and categories are now moved to their own taxonomyDb.json file. When you open a project, it will check if tags or categories are present in the DB. If not, it will update it with the one from your settings.

Xnapper-2023-04-14-15 49 33-EEF51F45-F8AE-472C-9904-C3A5F00927FC

The tags and categories are now moved to their own `taxonomyDb.json` file. When you open a project, it will check if tags or categories are present in the DB. If not, it will update it with the one from your settings. ![Xnapper-2023-04-14-15 49 33-EEF51F45-F8AE-472C-9904-C3A5F00927FC](https://user-images.githubusercontent.com/2900833/232063761-c06d5c8b-bb3b-4099-bf64-bb8ca53424d6.png) <!-- github-comment-id:1508559840 -->
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#445