From bd460de4b5490f829c6cc26a43c17f79c5428431 Mon Sep 17 00:00:00 2001 From: aloxe Date: Sun, 15 Sep 2024 21:31:13 +0200 Subject: [PATCH] edit config again --- src/assets/public/admin/config.yml | 36 ++++++++++++++---------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/src/assets/public/admin/config.yml b/src/assets/public/admin/config.yml index 3c71c82..4133076 100644 --- a/src/assets/public/admin/config.yml +++ b/src/assets/public/admin/config.yml @@ -3,14 +3,25 @@ backend: repo: aloxe/reunionweb # Path to your GitHub repository branch: ecrire base_url: https://my.reunionweb.org # Path to ext auth provider -media_folder: "media/uploads" + +media_folder: "src/static/img" collections: + - name: "decouverte" + label: "Découverte" + folder: "src/pages/decouverte" + create: true + fields: + - {label: "Layout", name: "layout", default: "decouverte"} + - {label: "Title", name: "title", widget: "string"} + - {label: "description", name: "description", widget: "string"} + - {label: "keywords", name: "keywords", widget: "string"} + - {label: "Body", name: "body", widget: "markdown"} + - name: "articles" # Used in routes, e.g., /admin/collections/blog label: "Articles" # Used in the UI folder: "src/pages/articles" # The path to the folder where the documents are stored create: true # Allow users to create new documents in this collection - slug: "" # Filename template, e.g., YYYY-MM-DD-title.md fields: # The fields for each document, usually in front matter - {label: "Layout", name: "layout", widget: "hidden", default: "post"} - {label: "Title", name: "title", widget: "string"} @@ -19,21 +30,8 @@ collections: - {label: "Publish Date", name: "date", widget: "datetime", time_format: false, date_format: "YYYY-MM", format: "YYYY-MM"} - 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 - folder: "src/pages/decouverte" # The path to the folder where the documents are stored - create: true # Allow users to create new documents in this collection - slug: "" # Filename template, e.g., YYYY-MM-DD-title.md - fields: # The fields for each document, usually in front matter - - {label: "Layout", name: "layout", widget: "hidden", default: "post"} - - {label: "Title", name: "title", widget: "string"} - - {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: "select", multiple: true, options: ["news", "portails", "blogs"], default: ["news"]} + widget: "select" + multiple: true + options: ["news", "portails", "blogs"] + default: ["news"] - {label: "Body", name: "body", widget: "markdown"}