Skip to content

Feature/config draft #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion site/static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ collections: # A list of collections the CMS should be able to edit
- {label: "Url", name: "url", widget: "string"}
- {label: "Aliases", name: "aliases", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false}
- {label: "Expiry Date", name: "expirydate", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false, required: false, default: ''}
- {label: "Image", name: "cover", widget: "image", required: false}
- {label: "Body", name: "body", widget: "markdown"}
- {label: "Draft", name: "draft", widget: "boolean", default: true}
- {label: "Tags", name: "tags", widget: "list"}
- name: "work" # Used in routes, ie.: /admin/collections/:slug/edit
label: "Work" # Used in the UI, ie.: "New Post"
Expand All @@ -45,11 +47,13 @@ collections: # A list of collections the CMS should be able to edit
create: true # Allow users to create new documents in this collection
fields: # The fields each document in this collection have
- {label: "Title", name: "title", widget: "string"}
- {label: "Weight", name: "weight", widget: "number"}
- {label: "Weight", name: "weight", widget: "number", required: false}
- {label: "Url", name: "url", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false}
- {label: "Expiry Date", name: "expirydate", widget: "datetime", format: "YYYY-MM-DD", timeFormat: false, required: false, default: ''}
- {label: "Image", name: "cover", widget: "image", required: false}
- {label: "Body", name: "body", widget: "markdown"}
- {label: "Draft", name: "draft", widget: "boolean", default: true}
- {label: "Tags", name: "tags", widget: "list"}
- name: "home"
label: "Home"
Expand Down