59 lines
1.3 KiB
JavaScript
Raw Normal View History

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",
folder: "content/german/chronikseiten",
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",
widget: "markdown",
required: false,
...MarkdownProps,
},
],
};
2023-05-11 15:16:14 +02:00
2023-05-29 16:22:34 +02:00
export default ChronikseitenCollection;