gcg-website/static/admin/config/collections/abiturienten.js
Denys Konovalov f0a4bac2bd
All checks were successful
website-main / prod-build (push) Successful in 11s
website-main / test-build (push) Successful in 5s
revert 65260f63c67562ea2821c31d37a0ac3caa755fd8
revert Static CMS v4 (#250)

Schließt #247

Reviewed-on: #250
2023-12-12 17:13:58 +01:00

57 lines
1.2 KiB
JavaScript

import { MarkdownProps } from "../props.js";
import { DraftBoolean, Title } from "./widgets.js";
const AbiturientenCollection = {
name: "abiturienten",
label: "Abiturienten",
label_singular: "Abiturjahrgang",
description:
"Hier kann die Übersicht der Abiturjahrgänge bearbeitet werden. Dieser Bereich wird von der Schulchronik verwaltet.",
icon: "graduation-cap",
folder: "content/abiturienten",
filter: {
field: "type",
value: "abiturienten",
},
create: true,
editor: {
preview: true,
frame: true,
size: "half",
},
summary_fields: ["title", "draft"],
sortable_fields: {
fields: ["title"],
default: {
field: "title",
direction: "Descending",
},
},
fields: [
Title(false),
DraftBoolean,
{
name: "image",
label: "Bild",
widget: "image",
default: "/media/image.webp",
required: false,
},
{
name: "type",
label: "Typ",
widget: "hidden",
default: "abiturienten",
},
{
name: "body",
label: "Text",
widget: "markdown",
required: false,
...MarkdownProps,
},
],
};
export default AbiturientenCollection;