Issue: customTaxonomy displays shows wrong additional entries from the posts in dashboard #498

Closed
opened 2026-10-05 02:50:24 +02:00 by adam · 3 comments
Owner

Describe the bug
After introducing following custom customTaxonomy, the TAXONOMY view on the dashboard displays additional, wrong one-char-entries (see screenshot):

  "frontMatter.taxonomy.customTaxonomy": [
    {
      "id": "series",
      "options": [
        "A New Blog",
        "Discoveries",
        "Great Finds",
        "Golem",
        "IndieWeb",
        "Lightroom Presets",
        "Step By Step",
        "SV Wehen Wiesbaden"
      ]
    }
  ]
  ...
  "frontMatter.taxonomy.contentTypes": [
    {
    "name": "default",
    "pageBundle": false,
    "fields": [
      ...
      {
        "title": "Series",
        "name": "series",
        "type": "taxonomy",
        "taxonomyId": "series"
      },
      ... 
    ]
  ]

image

I have checked all my posts for invalid Front Matter and tried to put quotes around the SERIES entry, where my default Front Matter doesn't use quotes. I also have tried to configure noPropertyValueQuotes, but this doesn't help either:

  "frontMatter.taxonomy.noPropertyValueQuotes": [
    "series"
  ]

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/kristofzerbe/kiko.io
  2. Open dashboard
  3. Switch to Taxonomies View

I can reproduce the behaviour on 2 Windows 10 machines locally (Front Matter v9.1.5938539-beta BETA) and on gitpod.com within a virtual Linux environment (Front Matter v9.0.0).

**Describe the bug** After introducing following custom ``customTaxonomy``, the TAXONOMY view on the dashboard displays additional, wrong one-char-entries (see screenshot): ``` "frontMatter.taxonomy.customTaxonomy": [ { "id": "series", "options": [ "A New Blog", "Discoveries", "Great Finds", "Golem", "IndieWeb", "Lightroom Presets", "Step By Step", "SV Wehen Wiesbaden" ] } ] ... "frontMatter.taxonomy.contentTypes": [ { "name": "default", "pageBundle": false, "fields": [ ... { "title": "Series", "name": "series", "type": "taxonomy", "taxonomyId": "series" }, ... ] ] ``` ![image](https://github.com/estruyf/vscode-front-matter/assets/243113/d8b82d48-349d-4bed-956d-08a9ac3c3f1e) I have checked all my posts for invalid Front Matter and tried to put quotes around the SERIES entry, where my default Front Matter doesn't use quotes. I also have tried to configure ``noPropertyValueQuotes``, but this doesn't help either: ``` "frontMatter.taxonomy.noPropertyValueQuotes": [ "series" ] ``` **To Reproduce** Steps to reproduce the behavior: 1. Clone https://github.com/kristofzerbe/kiko.io 2. Open dashboard 3. Switch to Taxonomies View I can reproduce the behaviour on 2 Windows 10 machines locally (Front Matter v9.1.5938539-beta BETA) and on gitpod.com within a virtual Linux environment (Front Matter v9.0.0). <!-- github-sync-id:1866586907 -->
adam closed this issue 2026-10-05 02:50:24 +02:00
Author
Owner

Thanks @kristofzerbe. This is because the taxonomy fields expect multiple values (or at least one) and you configured it to use it as a string.

The frontMatter.taxonomy.noPropertyValueQuotes setting won't help.

I have added a minor fix to overcome the faulty rendering of the taxonomy view.

Thanks @kristofzerbe. This is because the taxonomy fields expect multiple values (or at least one) and you configured it to use it as a string. The `frontMatter.taxonomy.noPropertyValueQuotes` setting won't help. I have added a minor fix to overcome the faulty rendering of the taxonomy view. <!-- github-comment-id:1693020372 -->
Author
Owner

Ah ... because not all of my posts have a SERIES! Thnx for your upcoming fix :)

Ah ... because not all of my posts have a SERIES! Thnx for your upcoming fix :) <!-- github-comment-id:1693026829 -->
Author
Owner

Ah ... because not all of my posts have a SERIES! Thnx for your upcoming fix :)

No, because you use the series field as a string, instead of an array (what FM expects). ☺️

> Ah ... because not all of my posts have a SERIES! Thnx for your upcoming fix :) No, because you use the `series` field as a string, instead of an array (what FM expects). ☺️ <!-- github-comment-id:1693028809 -->
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#498