Skip to content

Folder-type collections with custom file extensions break if they are non-markdown. #763

Closed
@tech4him1

Description

- Do you want to request a feature or report a bug?
bug

- What is the current behavior?
If you use a folder-type collection with a non-markdown format (YAML, TOML, or JSON), as well as a custom file extension that does not match the format (extension .customext for YAML format).

- If the current behavior is a bug, please provide the steps to reproduce.

  1. Use the example site.
  2. Set format: yaml and extension: customext on a collection.
  3. Create a new entry in the collection (this should work).
  4. The entry cannot be edited (content appears to be missing). Console error is "Error: Unrecognized front-matter format."

- What is the expected behavior?
The entry should be able to be edited.

- Please mention your CMS, node.js, and operating system version.

CMS 0.6.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions