Skip to content

Commit

Permalink
fix widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
aloxe committed Sep 14, 2024
1 parent aec4de9 commit 6ca128f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/assets/public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ collections:
- {label: "description", name: "description", widget: "string"}
- {label: "keywords", name: "keywords", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime", time_format: false, date_format: "YYYY-MM", format: "YYYY-MM"}
- {label: "categorie", name: "categorie", widget: "array"}
- label: "categorie"
name: "categorie"
widget: "list"
fields:
- { label: "Source", name: "src", widget: "string" }
- { label: "Alt Text", name: "alt", widget: "string" }
- {label: "Body", name: "body", widget: "markdown"}
- name: "decouverte" # Used in routes, e.g., /admin/collections/blog
label: "Découverte" # Used in the UI
Expand All @@ -30,7 +35,7 @@ collections:
- {label: "description", name: "description", widget: "string"}
- {label: "keywords", name: "keywords", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime", time_format: false, date_format: "YYYY-MM", format: "YYYY-MM"}
- {label: "categorie", name: "categorie", widget: "array"}
- {label: "categorie", name: "categorie", widget: "select", multiple: true, options: ["news", "portails", "blogs"], default: ["news"]}
- {label: "Body", name: "body", widget: "markdown"}
- label: "Settings"
name: "settings"
Expand Down

0 comments on commit 6ca128f

Please sign in to comment.