Is your feature request related to a problem? Please describe.
I have a draft field in my Astro Content Collection. When setting the field to false the whole draft line is hidden from the Front Matter, but the field is required by my Content Collection.
Describe the solution you'd like
The best way would be to have an addition property on the boolean fields to decide if false values should hide the whole line from the front matter.
Describe alternatives you've considered
I could use choices field to have different stages of the drafts, but that's only the one use case for the setting. I have other boolean values that need to be explicitly set.
**Is your feature request related to a problem? Please describe.**
I have a `draft` field in my Astro Content Collection. When setting the field to false the whole draft line is hidden from the Front Matter, but the field is required by my Content Collection.
**Describe the solution you'd like**
The best way would be to have an addition property on the boolean fields to decide if `false` values should hide the whole line from the front matter.
**Describe alternatives you've considered**
I could use choices field to have different stages of the drafts, but that's only the one use case for the setting. I have other boolean values that need to be explicitly set.
<!-- github-sync-id:2223641498 -->
Hi @marekbrze, on the content type level, you can set the clearEmpty to false (also the default), which should prevent clearing/hiding the line from your front matter.
Hi @marekbrze, on the content type level, you can set the `clearEmpty` to false (also the default), which should prevent clearing/hiding the line from your front matter.
https://frontmatter.codes/docs/content-creation/content-types#content-type-properties
<!-- github-comment-id:2036509720 -->
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.
Is your feature request related to a problem? Please describe.
I have a
draftfield in my Astro Content Collection. When setting the field to false the whole draft line is hidden from the Front Matter, but the field is required by my Content Collection.Describe the solution you'd like
The best way would be to have an addition property on the boolean fields to decide if
falsevalues should hide the whole line from the front matter.Describe alternatives you've considered
I could use choices field to have different stages of the drafts, but that's only the one use case for the setting. I have other boolean values that need to be explicitly set.
Hi @marekbrze, on the content type level, you can set the
clearEmptyto false (also the default), which should prevent clearing/hiding the line from your front matter.https://frontmatter.codes/docs/content-creation/content-types#content-type-properties
Oh, I overlooked this setting. Works now! Thanks for the help!