I am pretty sure, that the first sample code in Re-using a data type for files or folders should be for frontmatter.data.types, not .files. Putting the type definitions into .types, then referencing them in .files[].type, right?
I am pretty sure, that the first sample code in [Re-using a data type for files or folders](https://frontmatter.codes/docs/dashboard#re-using-a-data-type-for-files-or-folders) should be for `frontmatter.data.types`, not `.files`. Putting the type definitions into `.types`, then referencing them in `.files[].type`, right?
---
#### Document Details
⚠ *Do not edit this section*
* ID: dashboard
* URL: https://frontmatter.codes/docs/dashboard
* Content Source: /content/docs/dashboard.md
<!-- github-sync-id:1201766493 -->
The provided sample is correctly referenced. The frontMatter.data.files setting can hold the schema or can reuse a schema defined from frontMatter.data.types.
In the first example, we show how to include the schema for a specific file. The second one, is where you move the schema to the frontMatter.data.types and use it in the frontMatter.data.files by referencing the type property.
I'll add the frontMatter.data.types setting sample to the code sample to clarify this.
EDIT: Ok, you're right ☺️ - will update the setting reference.
~The provided sample is correctly referenced. The `frontMatter.data.files` setting can hold the schema or can reuse a schema defined from `frontMatter.data.types`.~
~In the first example, we show how to include the schema for a specific file. The second one, is where you move the schema to the `frontMatter.data.types` and use it in the `frontMatter.data.files` by referencing the `type` property.~
~I'll add the `frontMatter.data.types` setting sample to the code sample to clarify this.~
EDIT: Ok, you're right ☺️ - will update the setting reference.
<!-- github-comment-id:1096684540 -->
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.
I am pretty sure, that the first sample code in Re-using a data type for files or folders should be for
frontmatter.data.types, not.files. Putting the type definitions into.types, then referencing them in.files[].type, right?Document Details
⚠ Do not edit this section
The provided sample is correctly referenced. ThefrontMatter.data.filessetting can hold the schema or can reuse a schema defined fromfrontMatter.data.types.In the first example, we show how to include the schema for a specific file. The second one, is where you move the schema to thefrontMatter.data.typesand use it in thefrontMatter.data.filesby referencing thetypeproperty.I'll add thefrontMatter.data.typessetting sample to the code sample to clarify this.EDIT: Ok, you're right ☺️ - will update the setting reference.
Updated and should be live in a minute. Thanks 🙏