2023-05-11 15:16:14 +02:00
|
|
|
import { MarkdownProps } from "../props.js";
|
|
|
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
|
|
|
|
|
|
|
const ChronikseitenCollection = {
|
2023-05-29 16:22:34 +02:00
|
|
|
name: "chronikseiten",
|
|
|
|
label: "Chronikseiten",
|
|
|
|
label_singular: "Zusatzseite (Chronik)",
|
|
|
|
description:
|
|
|
|
"Chronikseiten entsprechen von der Funktionalität herkömmlichen Zusatzseiten, sind allerdings der Schulchronik vorbehalten.",
|
|
|
|
icon: "page-add",
|
2023-06-21 17:58:49 +02:00
|
|
|
folder: "content/chronikseiten",
|
2023-05-29 16:22:34 +02:00
|
|
|
create: true,
|
|
|
|
editor: {
|
|
|
|
preview: true,
|
|
|
|
frame: true,
|
|
|
|
size: "half",
|
|
|
|
},
|
|
|
|
filter: {
|
|
|
|
field: "type",
|
|
|
|
value: "pages",
|
|
|
|
},
|
|
|
|
summary_fields: ["title", "draft", "aliases", "body"],
|
|
|
|
fields: [
|
|
|
|
Title(false),
|
|
|
|
DraftBoolean,
|
|
|
|
DescriptionText,
|
|
|
|
{
|
|
|
|
name: "type",
|
|
|
|
label: "Typ",
|
|
|
|
widget: "hidden",
|
|
|
|
default: "pages",
|
2023-05-11 15:16:14 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
{
|
|
|
|
name: "aliases",
|
|
|
|
label: "Aliase",
|
|
|
|
label_singular: "Alias",
|
|
|
|
widget: "list",
|
|
|
|
collapsed: true,
|
|
|
|
required: false,
|
|
|
|
fields: [
|
2023-05-11 15:16:14 +02:00
|
|
|
{
|
2023-05-29 16:22:34 +02:00
|
|
|
name: "alias",
|
|
|
|
label: "Alias",
|
|
|
|
widget: "string",
|
2023-05-11 15:16:14 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "body",
|
|
|
|
label: "Inhalt",
|
2023-12-12 17:13:58 +01:00
|
|
|
widget: "markdown",
|
2023-05-29 16:22:34 +02:00
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
2023-05-11 15:16:14 +02:00
|
|
|
|
2023-05-29 16:22:34 +02:00
|
|
|
export default ChronikseitenCollection;
|