Skip to content

Commit

Permalink
Add workaround for working with date field with custom format in Deca…
Browse files Browse the repository at this point in the history
…p CMS
  • Loading branch information
andreslucena committed Feb 29, 2024
1 parent 0c62ede commit b747c4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ collections:
- {label: "Name", name: "name", widget: "string", required: true}
- {label: "URL", name: "url", widget: "string", required: true}
- {label: "Image", name: "image", widget: "image", required: true}
- {label: "Joined at", name: "joined_at", widget: "datetime", date_format: "YYYY-MM-DD", required: true}
# Maybe after these are fixed this can work as it should according to their docs:
# * https://github.com/decaporg/decap-cms/pull/7091
# * https://github.com/decaporg/decap-cms/issues/7090
#
# - {label: "Joined at", name: "joined_at", widget: "datetime", date_format: "YYYY.MM.DD", time_format: false, required: true}
# In the meantime we use a string as a workaround
- {label: "Joined at", name: "joined_at", widget: "string", default: "YYYY.MM.DD", required: true}
- {label: "Type", name: "type", widget: "select", options: ["public", "provider", "technology"], required: false}
- name: "Installation (usedby)"
label: "Installation"
Expand Down

0 comments on commit b747c4e

Please sign in to comment.