Can you provide a working example of customTaxonomy in use? The example in the docs (https://frontmatter.codes/docs/content-types#custom-taxonomy-field) is not functioning correctly when used verbatim. It appears to link a taxonomyId of 'custom taxonomy' with a name property of a "taxonomy field" (rather than the id property?); there's also no sense of where one should define the custom fields.
I assume I just don't understand the expected syntax for settings.json.
Thanks!
Can you provide a working example of `customTaxonomy` in use? The example in the docs (https://frontmatter.codes/docs/content-types#custom-taxonomy-field) is not functioning correctly when used verbatim. It appears to link a `taxonomyId` of 'custom taxonomy' with a `name` property of a "taxonomy field" (rather than the `id` property?); there's also no sense of where one should define the custom fields.
This, for example, does not work:
```
"frontMatter.taxonomy.customTaxonomy": [
{
"title": "category singular",
"name": "category",
"type": "taxonomy",
"taxonomyId": "categorySingular"
}
]
```
I assume I just don't understand the expected syntax for `settings.json`.
Thanks!
<!-- github-sync-id:1130596998 -->
Hi @grahampcharles it seems the provided sample is incorrect. Sorry for that.
The taxonomyId value needed to be customTaxonomy as that matches the custom taxonomy its id.
Hi @grahampcharles it seems the provided sample is incorrect. Sorry for that.
The `taxonomyId` value needed to be `customTaxonomy` as that matches the custom taxonomy its id.
<!-- github-comment-id:1035271015 -->
Yes, this goes in the settings.json or in the frontmatter.json file.
> Great! And it goes in `settings.json`?
Yes, this goes in the `settings.json` or in the `frontmatter.json` file.
<!-- github-comment-id:1035282838 -->
Ah, brilliant -- thanks! I wasn't understanding that the "frontMatter.taxonomy.contentTypes" setting was related.
Thanks again,
Graham
Ah, brilliant -- thanks! I wasn't understanding that the `"frontMatter.taxonomy.contentTypes"` setting was related.
Thanks again,
Graham
<!-- github-comment-id:1035285961 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Can you provide a working example of
customTaxonomyin use? The example in the docs (https://frontmatter.codes/docs/content-types#custom-taxonomy-field) is not functioning correctly when used verbatim. It appears to link ataxonomyIdof 'custom taxonomy' with anameproperty of a "taxonomy field" (rather than theidproperty?); there's also no sense of where one should define the custom fields.This, for example, does not work:
I assume I just don't understand the expected syntax for
settings.json.Thanks!
Hi @grahampcharles it seems the provided sample is incorrect. Sorry for that.
The
taxonomyIdvalue needed to becustomTaxonomyas that matches the custom taxonomy its id.Great! And it goes in
settings.json?An example:
Yes, this goes in the
settings.jsonor in thefrontmatter.jsonfile.Ah, brilliant -- thanks! I wasn't understanding that the
"frontMatter.taxonomy.contentTypes"setting was related.Thanks again,
Graham