From 4739c2041757b9151cf9361bf5e3ef705ca98e73 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Mon, 26 Dec 2022 18:02:30 +0100 Subject: [PATCH] cms fix --- static/admin-new/config.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/static/admin-new/config.yml b/static/admin-new/config.yml index dd80ce10..392c6042 100644 --- a/static/admin-new/config.yml +++ b/static/admin-new/config.yml @@ -460,6 +460,14 @@ collections: preview: true media_folder: '/static/media/blog' public_folder: '/media/blog' + view_groups: + - label: Drafts + field: draft + sortable_fields: + fields: ['date', 'title'] + default: + field: date + direction: Descending fields: - {label: "Titel", name: "title", widget: "string"} - {label: "Datum", name: "date", widget: "datetime", date_format: "dd/MM/yyyy", time_format: false} @@ -643,4 +651,3 @@ collections: - {label: "Mehrere Bilder", name: "multiple", widget: "boolean", default: false, required: false} - {label: "Type", name: "type", widget: "hidden", default: "abiturienten"} - {label: "Text", name: "body", widget: "markdown"} -