Static CMS v4 #252
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps, ImageProps } from "../props.js";
|
import { EditorProps, MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DraftBoolean, Title } from "./widgets.js";
|
import { DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const AbiturientenCollection = {
|
const AbiturientenCollection = {
|
||||||
@ -13,12 +13,7 @@ const AbiturientenCollection = {
|
|||||||
field: "type",
|
field: "type",
|
||||||
value: "abiturienten",
|
value: "abiturienten",
|
||||||
},
|
},
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
summary_fields: ["title", "draft"],
|
summary_fields: ["title", "draft"],
|
||||||
sortable_fields: {
|
sortable_fields: {
|
||||||
fields: ["title"],
|
fields: ["title"],
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps, PatternEmail, ImageProps } from "../props.js";
|
import { EditorProps, MarkdownProps, PatternEmail, ImageProps } from "../props.js";
|
||||||
import { DescriptionText } from "./widgets.js";
|
import { DescriptionText } from "./widgets.js";
|
||||||
|
|
||||||
const AuthorCollection = {
|
const AuthorCollection = {
|
||||||
@ -9,12 +9,7 @@ const AuthorCollection = {
|
|||||||
"Autoren können einem Blogartikel zugewiesen werden. Wir unterscheiden in aktive und inaktive sowie vereinfachte Autoren, welche nur mit dem Namen angezeigt werden, und erweiterte Autoren, für die eine Übersichtsseite angelegt wird.",
|
"Autoren können einem Blogartikel zugewiesen werden. Wir unterscheiden in aktive und inaktive sowie vereinfachte Autoren, welche nur mit dem Namen angezeigt werden, und erweiterte Autoren, für die eine Übersichtsseite angelegt wird.",
|
||||||
icon: "user",
|
icon: "user",
|
||||||
folder: "content/author",
|
folder: "content/author",
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
filter: {
|
filter: {
|
||||||
field: "type",
|
field: "type",
|
||||||
value: "author",
|
value: "author",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps, ImageProps } from "../props.js";
|
import { EditorProps, MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const BegabteCollection = {
|
const BegabteCollection = {
|
||||||
@ -9,12 +9,7 @@ const BegabteCollection = {
|
|||||||
"Hier kann die Übersicht der Begabtenförderungsangebote bearbeitet werden.",
|
"Hier kann die Übersicht der Begabtenförderungsangebote bearbeitet werden.",
|
||||||
icon: "pi",
|
icon: "pi",
|
||||||
folder: "content/begabte",
|
folder: "content/begabte",
|
||||||
create: true,
|
EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
filter: {
|
filter: {
|
||||||
field: "type",
|
field: "type",
|
||||||
value: "begabte",
|
value: "begabte",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { DateFormat, MarkdownProps, ImageProps } from "../props.js";
|
import { EditorProps, DateFormat, MarkdownProps, ImageProps } from "../props.js";
|
||||||
import {
|
import {
|
||||||
AuthorRelation,
|
AuthorRelation,
|
||||||
DescriptionText,
|
DescriptionText,
|
||||||
@ -14,12 +14,7 @@ const BlogCollection = {
|
|||||||
'Diese Artikel werden im Bereich "Aktuelles" auf der Schulhomepage angezeigt. Sie können sowohl direkt veröffentlicht, als auch als Entwurf gespeichert werden.',
|
'Diese Artikel werden im Bereich "Aktuelles" auf der Schulhomepage angezeigt. Sie können sowohl direkt veröffentlicht, als auch als Entwurf gespeichert werden.',
|
||||||
icon: "news",
|
icon: "news",
|
||||||
folder: "content/blog",
|
folder: "content/blog",
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
filter: {
|
filter: {
|
||||||
field: "type",
|
field: "type",
|
||||||
value: "post",
|
value: "post",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps, ImageProps } from "../props.js";
|
import { EditorProps, MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const CantorforaCollection = {
|
const CantorforaCollection = {
|
||||||
@ -14,11 +14,7 @@ const CantorforaCollection = {
|
|||||||
value: "cantorfora",
|
value: "cantorfora",
|
||||||
},
|
},
|
||||||
create: true,
|
create: true,
|
||||||
editor: {
|
...EditorProps,
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
summary_fields: ["title", "draft", "description"],
|
summary_fields: ["title", "draft", "description"],
|
||||||
sortable_fields: {
|
sortable_fields: {
|
||||||
fields: ["index", "title"],
|
fields: ["index", "title"],
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps, ImageProps } from "../props.js";
|
import { EditorProps, MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean } from "./widgets.js";
|
import { DescriptionText, DraftBoolean } from "./widgets.js";
|
||||||
|
|
||||||
const CantorpreisCollection = {
|
const CantorpreisCollection = {
|
||||||
@ -20,12 +20,7 @@ const CantorpreisCollection = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
summary: "{{title}} - {{name}}",
|
summary: "{{title}} - {{name}}",
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
summary_fields: ["title", "name", "draft", "body"],
|
summary_fields: ["title", "name", "draft", "body"],
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { EditorProps, MarkdownProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const ChronikseitenCollection = {
|
const ChronikseitenCollection = {
|
||||||
@ -9,12 +9,7 @@ const ChronikseitenCollection = {
|
|||||||
"Chronikseiten entsprechen von der Funktionalität herkömmlichen Zusatzseiten, sind allerdings der Schulchronik vorbehalten.",
|
"Chronikseiten entsprechen von der Funktionalität herkömmlichen Zusatzseiten, sind allerdings der Schulchronik vorbehalten.",
|
||||||
icon: "page-add",
|
icon: "page-add",
|
||||||
folder: "content/chronikseiten",
|
folder: "content/chronikseiten",
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
filter: {
|
filter: {
|
||||||
field: "type",
|
field: "type",
|
||||||
value: "pages",
|
value: "pages",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { EditorProps, MarkdownProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const FormsCollection = {
|
const FormsCollection = {
|
||||||
@ -9,12 +9,7 @@ const FormsCollection = {
|
|||||||
"Hier sind Formulare, Vorlagen und andere Dokumente zu hinterlegen.",
|
"Hier sind Formulare, Vorlagen und andere Dokumente zu hinterlegen.",
|
||||||
icon: "document",
|
icon: "document",
|
||||||
folder: "content/forms",
|
folder: "content/forms",
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
filter: {
|
filter: {
|
||||||
field: "type",
|
field: "type",
|
||||||
value: "forms",
|
value: "forms",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps, ImageProps } from "../props.js";
|
import { EditorProps, MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { Title, DescriptionText, DraftBoolean } from "./widgets.js";
|
import { Title, DescriptionText, DraftBoolean } from "./widgets.js";
|
||||||
|
|
||||||
const GanztagCollection = {
|
const GanztagCollection = {
|
||||||
@ -9,12 +9,7 @@ const GanztagCollection = {
|
|||||||
"Hier kann die Übersicht der Ganztagsangebote bearbeitet werden.",
|
"Hier kann die Übersicht der Ganztagsangebote bearbeitet werden.",
|
||||||
icon: "group",
|
icon: "group",
|
||||||
folder: "content/ganztagsangebote",
|
folder: "content/ganztagsangebote",
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
filter: {
|
filter: {
|
||||||
field: "type",
|
field: "type",
|
||||||
value: "ganztagsangebote",
|
value: "ganztagsangebote",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { EditorProps, MarkdownProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const PagesCollection = {
|
const PagesCollection = {
|
||||||
@ -9,12 +9,7 @@ const PagesCollection = {
|
|||||||
"Zusatzseiten können direkt aus der grafischen Oberfläche heraus erstellt werden und sind unter https://cantorgymnasium.de/pages/[SEITENTITEL] einsehbar. Sie bestehen immer aus einem Titel, einer Metabeschreibung (kurzer Einstiegstext) und dem eigentlichen Inhalt. Einer Zusatzseite kann auch ein Alias, also eine alternative URL zugewiesen werden.",
|
"Zusatzseiten können direkt aus der grafischen Oberfläche heraus erstellt werden und sind unter https://cantorgymnasium.de/pages/[SEITENTITEL] einsehbar. Sie bestehen immer aus einem Titel, einer Metabeschreibung (kurzer Einstiegstext) und dem eigentlichen Inhalt. Einer Zusatzseite kann auch ein Alias, also eine alternative URL zugewiesen werden.",
|
||||||
icon: "page-add",
|
icon: "page-add",
|
||||||
folder: "content/pages",
|
folder: "content/pages",
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
filter: {
|
filter: {
|
||||||
field: "type",
|
field: "type",
|
||||||
value: "pages",
|
value: "pages",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { EditorProps, MarkdownProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, IconList, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, IconList, Title } from "./widgets.js";
|
||||||
|
|
||||||
const ProjektwocheCollection = {
|
const ProjektwocheCollection = {
|
||||||
@ -12,12 +12,7 @@ const ProjektwocheCollection = {
|
|||||||
field: "type",
|
field: "type",
|
||||||
value: "projektwoche",
|
value: "projektwoche",
|
||||||
},
|
},
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
summary_fields: ["title", "draft", "tiles", "description"],
|
summary_fields: ["title", "draft", "tiles", "description"],
|
||||||
fields: [
|
fields: [
|
||||||
Title(false),
|
Title(false),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { EditorProps, MarkdownProps } from "../props.js";
|
||||||
import { DraftBoolean, EnableBoolean, Title } from "./widgets.js";
|
import { DraftBoolean, EnableBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const SuperhaufenCollection = {
|
const SuperhaufenCollection = {
|
||||||
@ -12,12 +12,7 @@ const SuperhaufenCollection = {
|
|||||||
field: "type",
|
field: "type",
|
||||||
value: "superhaufen",
|
value: "superhaufen",
|
||||||
},
|
},
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
summary_fields: ["title", "draft", "tiles"],
|
summary_fields: ["title", "draft", "tiles"],
|
||||||
fields: [
|
fields: [
|
||||||
Title(false),
|
Title(false),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps, ImageProps } from "../props.js";
|
import { EditorProps, MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const WettbewerbeCollection = {
|
const WettbewerbeCollection = {
|
||||||
@ -8,12 +8,7 @@ const WettbewerbeCollection = {
|
|||||||
description: "Hier kann die Übersicht der Wettbewerbe bearbeitet werden.",
|
description: "Hier kann die Übersicht der Wettbewerbe bearbeitet werden.",
|
||||||
icon: "trophy",
|
icon: "trophy",
|
||||||
folder: "content/wettbewerbe",
|
folder: "content/wettbewerbe",
|
||||||
create: true,
|
...EditorProps,
|
||||||
editor: {
|
|
||||||
preview: true,
|
|
||||||
frame: true,
|
|
||||||
size: "half",
|
|
||||||
},
|
|
||||||
filter: {
|
filter: {
|
||||||
field: "type",
|
field: "type",
|
||||||
value: "wettbewerbe",
|
value: "wettbewerbe",
|
||||||
|
@ -36,7 +36,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
local_backend: true,
|
local_backend: true,
|
||||||
media_folder: "/static/media",
|
media_folder: "static/media",
|
||||||
public_folder: "/media",
|
public_folder: "/media",
|
||||||
media_library: {
|
media_library: {
|
||||||
max_file_size: 10240000,
|
max_file_size: 10240000,
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
const EditorProps = {
|
||||||
|
create: true,
|
||||||
|
editor: {
|
||||||
|
preview: true,
|
||||||
|
frame: true,
|
||||||
|
size: "half",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const MarkdownProps = {
|
const MarkdownProps = {
|
||||||
widget: "markdown",
|
widget: "markdown",
|
||||||
toolbar_buttons: {
|
toolbar_buttons: {
|
||||||
@ -83,4 +92,4 @@ const ImageProps = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export { MarkdownProps, DateFormat, DataObject, PatternEmail, ImageProps };
|
export { EditorProps, MarkdownProps, DateFormat, DataObject, PatternEmail, ImageProps };
|
||||||
|
@ -26,7 +26,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
local_backend: true,
|
local_backend: true,
|
||||||
media_folder: "/static/media",
|
media_folder: "static/media",
|
||||||
public_folder: "/media",
|
public_folder: "/media",
|
||||||
media_library: {
|
media_library: {
|
||||||
max_file_size: 10240000,
|
max_file_size: 10240000,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user