fix scms v4 media path
This commit is contained in:
parent
4cda77a8ed
commit
47690dddd1
@ -1,4 +1,4 @@
|
||||
import { MarkdownProps, ImageProps } from "../props.js";
|
||||
import { EditorProps, MarkdownProps, ImageProps } from "../props.js";
|
||||
import { DraftBoolean, Title } from "./widgets.js";
|
||||
|
||||
const AbiturientenCollection = {
|
||||
@ -13,12 +13,7 @@ const AbiturientenCollection = {
|
||||
field: "type",
|
||||
value: "abiturienten",
|
||||
},
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
summary_fields: ["title", "draft"],
|
||||
sortable_fields: {
|
||||
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";
|
||||
|
||||
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.",
|
||||
icon: "user",
|
||||
folder: "content/author",
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
filter: {
|
||||
field: "type",
|
||||
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";
|
||||
|
||||
const BegabteCollection = {
|
||||
@ -9,12 +9,7 @@ const BegabteCollection = {
|
||||
"Hier kann die Übersicht der Begabtenförderungsangebote bearbeitet werden.",
|
||||
icon: "pi",
|
||||
folder: "content/begabte",
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
EditorProps,
|
||||
filter: {
|
||||
field: "type",
|
||||
value: "begabte",
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { DateFormat, MarkdownProps, ImageProps } from "../props.js";
|
||||
import { EditorProps, DateFormat, MarkdownProps, ImageProps } from "../props.js";
|
||||
import {
|
||||
AuthorRelation,
|
||||
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.',
|
||||
icon: "news",
|
||||
folder: "content/blog",
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
filter: {
|
||||
field: "type",
|
||||
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";
|
||||
|
||||
const CantorforaCollection = {
|
||||
@ -14,11 +14,7 @@ const CantorforaCollection = {
|
||||
value: "cantorfora",
|
||||
},
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
summary_fields: ["title", "draft", "description"],
|
||||
sortable_fields: {
|
||||
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";
|
||||
|
||||
const CantorpreisCollection = {
|
||||
@ -20,12 +20,7 @@ const CantorpreisCollection = {
|
||||
},
|
||||
},
|
||||
summary: "{{title}} - {{name}}",
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
summary_fields: ["title", "name", "draft", "body"],
|
||||
fields: [
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { MarkdownProps } from "../props.js";
|
||||
import { EditorProps, MarkdownProps } from "../props.js";
|
||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||
|
||||
const ChronikseitenCollection = {
|
||||
@ -9,12 +9,7 @@ const ChronikseitenCollection = {
|
||||
"Chronikseiten entsprechen von der Funktionalität herkömmlichen Zusatzseiten, sind allerdings der Schulchronik vorbehalten.",
|
||||
icon: "page-add",
|
||||
folder: "content/chronikseiten",
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
filter: {
|
||||
field: "type",
|
||||
value: "pages",
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { MarkdownProps } from "../props.js";
|
||||
import { EditorProps, MarkdownProps } from "../props.js";
|
||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||
|
||||
const FormsCollection = {
|
||||
@ -9,12 +9,7 @@ const FormsCollection = {
|
||||
"Hier sind Formulare, Vorlagen und andere Dokumente zu hinterlegen.",
|
||||
icon: "document",
|
||||
folder: "content/forms",
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
filter: {
|
||||
field: "type",
|
||||
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";
|
||||
|
||||
const GanztagCollection = {
|
||||
@ -9,12 +9,7 @@ const GanztagCollection = {
|
||||
"Hier kann die Übersicht der Ganztagsangebote bearbeitet werden.",
|
||||
icon: "group",
|
||||
folder: "content/ganztagsangebote",
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
filter: {
|
||||
field: "type",
|
||||
value: "ganztagsangebote",
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { MarkdownProps } from "../props.js";
|
||||
import { EditorProps, MarkdownProps } from "../props.js";
|
||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||
|
||||
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.",
|
||||
icon: "page-add",
|
||||
folder: "content/pages",
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
filter: {
|
||||
field: "type",
|
||||
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";
|
||||
|
||||
const ProjektwocheCollection = {
|
||||
@ -12,12 +12,7 @@ const ProjektwocheCollection = {
|
||||
field: "type",
|
||||
value: "projektwoche",
|
||||
},
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
summary_fields: ["title", "draft", "tiles", "description"],
|
||||
fields: [
|
||||
Title(false),
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { MarkdownProps } from "../props.js";
|
||||
import { EditorProps, MarkdownProps } from "../props.js";
|
||||
import { DraftBoolean, EnableBoolean, Title } from "./widgets.js";
|
||||
|
||||
const SuperhaufenCollection = {
|
||||
@ -12,12 +12,7 @@ const SuperhaufenCollection = {
|
||||
field: "type",
|
||||
value: "superhaufen",
|
||||
},
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
summary_fields: ["title", "draft", "tiles"],
|
||||
fields: [
|
||||
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";
|
||||
|
||||
const WettbewerbeCollection = {
|
||||
@ -8,12 +8,7 @@ const WettbewerbeCollection = {
|
||||
description: "Hier kann die Übersicht der Wettbewerbe bearbeitet werden.",
|
||||
icon: "trophy",
|
||||
folder: "content/wettbewerbe",
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
...EditorProps,
|
||||
filter: {
|
||||
field: "type",
|
||||
value: "wettbewerbe",
|
||||
|
@ -36,7 +36,7 @@ const config = {
|
||||
},
|
||||
},
|
||||
local_backend: true,
|
||||
media_folder: "/static/media",
|
||||
media_folder: "static/media",
|
||||
public_folder: "/media",
|
||||
media_library: {
|
||||
max_file_size: 10240000,
|
||||
|
@ -1,3 +1,12 @@
|
||||
const EditorProps = {
|
||||
create: true,
|
||||
editor: {
|
||||
preview: true,
|
||||
frame: true,
|
||||
size: "half",
|
||||
},
|
||||
};
|
||||
|
||||
const MarkdownProps = {
|
||||
widget: "markdown",
|
||||
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,
|
||||
media_folder: "/static/media",
|
||||
media_folder: "static/media",
|
||||
public_folder: "/media",
|
||||
media_library: {
|
||||
max_file_size: 10240000,
|
||||
|
Loading…
x
Reference in New Issue
Block a user