Skip to content

Commit

Permalink
nested collections structure (BROKEN: see decaporg/decap-cms#6498)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldinvo committed Aug 23, 2024
1 parent 87c0ddd commit 14fa5d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions public/admin/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
local_backend: true


collections:
- name: "blog" # Used in routes, e.g., /admin/collections/blog
label: "Blog" # Used in the UI
Expand All @@ -22,6 +25,13 @@ collections:
create: true # Allow users to create new documents in this collection
extension: mdx
format: frontmatter
nested:
depth: 100 # max depth to show in the collection tree
summary: '{{title}}' # optional summary for a tree node, defaults to the inferred title field
# adding a meta object with a path property allows editing the path of entries
# moving an existing entry will move the entire sub tree of the entry to the new location
meta: { path: { widget: string, label: 'Path', index_file: 'index' } }

fields: # The fields for each document, usually in frontmatter
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "text", required: false }
Expand Down

0 comments on commit 14fa5d6

Please sign in to comment.