2023-05-29 16:22:34 +02:00
import {
DataObject ,
DateFormat ,
MarkdownProps ,
PatternEmail ,
} from "../props.js" ;
import { DescriptionText , EnableBoolean , Title } from "./widgets.js" ;
const IndexPagesCollection = {
name : "index-pages" ,
label : "Hauptseiten" ,
label _singular : "Hauptseite" ,
description :
"Hauptseiten können nur manuell durch den Administrator angelegt und in die Website eingebunden werden. Über diesen Bereich ist die Änderung der Inhalte möglich." ,
icon : "page" ,
editor : {
preview : true ,
frame : true ,
size : "half" ,
} ,
summary _fields : [ "title" , "description" ] ,
files : [
{
name : "blog-index" ,
label : "Aktuelles" ,
2023-06-21 17:58:49 +02:00
file : "content/blog/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [ Title ( false ) , DescriptionText ] ,
} ,
{
name : "about-index" ,
label : "Über die Schule" ,
2023-06-21 17:58:49 +02:00
file : "content/about/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [
Title ( false ) ,
DescriptionText ,
{
name : "image" ,
label : "Bild" ,
widget : "image" ,
required : false ,
} ,
{
name : "stats" ,
label : "Statistik" ,
... DataObject ,
fields : [
EnableBoolean ,
{
name : "zahlen" ,
label : "Elemente" ,
label _singular : "Element" ,
widget : "list" ,
required : false ,
collapsed : false ,
fields : [
{
name : "name" ,
label : "Bezeichnung" ,
widget : "string" ,
required : true ,
} ,
{
name : "count" ,
label : "Zahl" ,
widget : "number" ,
value _type : "int" ,
min : 0 ,
step : 1 ,
required : true ,
} ,
] ,
} ,
] ,
} ,
{
name : "body" ,
label : "Inhalt" ,
widget : "markdown" ,
required : false ,
... MarkdownProps ,
} ,
] ,
} ,
{
name : "anmeldung-index" ,
label : "Aufnahmeverfahren" ,
2023-06-21 17:58:49 +02:00
file : "content/anmeldung/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [
Title ( false ) ,
DescriptionText ,
{
name : "body" ,
label : "Inhalt" ,
widget : "markdown" ,
required : false ,
... MarkdownProps ,
} ,
{
name : "elements" ,
label : "Abschnitte" ,
label _singular : "Abschnitt" ,
widget : "list" ,
required : false ,
collapsed : true ,
fields : [
Title ( false ) ,
{
name : "content" ,
label : "Inhalt" ,
widget : "markdown" ,
required : true ,
... MarkdownProps ,
} ,
] ,
} ,
] ,
} ,
{
name : "author-index" ,
label : "Autoren" ,
2023-06-21 17:58:49 +02:00
file : "content/author/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [ Title ( false ) , DescriptionText ] ,
} ,
{
name : "anmeldeformular" ,
label : "Anmeldeformular" ,
2023-06-21 17:58:49 +02:00
file : "content/anmeldeformular/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [
Title ( false ) ,
DescriptionText ,
{
name : "body" ,
label : "Inhalt" ,
widget : "markdown" ,
required : false ,
... MarkdownProps ,
} ,
] ,
} ,
{
name : "cantorpreis-index" ,
label : "Cantorpreis" ,
2023-06-21 17:58:49 +02:00
file : "content/cantorpreis/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [ Title ( false ) , DescriptionText ] ,
} ,
{
name : "kontakt" ,
label : "Kontakt" ,
2023-06-21 17:58:49 +02:00
file : "content/kontakt/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [
Title ( false ) ,
DescriptionText ,
{
name : "kontaktdaten" ,
label : "Kontaktdaten" ,
widget : "list" ,
required : true ,
collapsed : true ,
fields : [
{
name : "name" ,
label : "Name" ,
widget : "string" ,
required : true ,
} ,
{
name : "position" ,
label : "Berufsbezeichnung" ,
widget : "string" ,
required : true ,
} ,
{
name : "email" ,
label : "E-Mail-Adresse" ,
widget : "string" ,
required : true ,
... PatternEmail ,
} ,
] ,
} ,
] ,
} ,
{
name : "termine" ,
label : "Termine" ,
2023-06-21 17:58:49 +02:00
file : "content/termine/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [
Title ( false ) ,
DescriptionText ,
{
name : "events" ,
label : "Termine" ,
label _singular : "Termin" ,
widget : "list" ,
required : true ,
collapsed : true ,
fields : [
{
name : "title" ,
label : "Bezeichnung" ,
widget : "string" ,
required : true ,
} ,
{
name : "date" ,
label : "Datum/Startdatum" ,
widget : "datetime" ,
required : true ,
... DateFormat ,
} ,
{
name : "enddate" ,
label : "Enddatum" ,
hint : "Für mehrtägige Veanstaltungen, nur sichtbar wenn eingestellt" ,
widget : "datetime" ,
required : false ,
... DateFormat ,
} ,
{
name : "location" ,
label : "Ort" ,
widget : "string" ,
required : false ,
} ,
] ,
} ,
] ,
} ,
{
name : "forms-index" ,
label : "Dokumente und Formulare" ,
2023-06-21 17:58:49 +02:00
file : "content/forms/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [ Title ( false ) , DescriptionText ] ,
} ,
{
name : "ganztagsangebote-index" ,
label : "Unser Ganztagsbereich" ,
2023-06-21 17:58:49 +02:00
file : "content/ganztagsangebote/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [ Title ( false ) , DescriptionText ] ,
} ,
{
name : "projektwoche-index" ,
label : "Projektwoche" ,
2023-06-21 17:58:49 +02:00
file : "content/projektwoche/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [ Title ( false ) , DescriptionText ] ,
} ,
{
name : "wettbewerbe-index" ,
label : "Wettbewerbe" ,
2023-06-21 17:58:49 +02:00
file : "content/wettbewerbe/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [ Title ( false ) , DescriptionText ] ,
} ,
{
name : "begabte-index" ,
label : "Begabtenförderung" ,
2023-06-21 17:58:49 +02:00
file : "content/begabte/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [ Title ( false ) , DescriptionText ] ,
} ,
{
name : "abiturienten-index" ,
label : "Abiturienten" ,
2023-06-21 17:58:49 +02:00
file : "content/abiturienten/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [ Title ( false ) , DescriptionText ] ,
} ,
{
name : "cantorfora-index" ,
label : "Cantorfora" ,
2023-06-21 17:58:49 +02:00
file : "content/cantorfora/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [
Title ( false ) ,
DescriptionText ,
{
name : "body" ,
label : "Inhalt" ,
widget : "markdown" ,
required : false ,
... MarkdownProps ,
} ,
] ,
} ,
{
name : "schulchronik-index" ,
label : "Schulchronik" ,
2023-06-21 17:58:49 +02:00
file : "content/schulchronik/_index.md" ,
2023-05-29 16:22:34 +02:00
fields : [
Title ( false ) ,
DescriptionText ,
{
name : "body" ,
label : "Inhalt" ,
widget : "markdown" ,
required : false ,
... MarkdownProps ,
} ,
{
name : "infocard" ,
label : "Zitatkarte" ,
... DataObject ,
fields : [
EnableBoolean ,
{
name : "image" ,
label : "Bild" ,
widget : "image" ,
required : false ,
} ,
{
name : "quote" ,
label : "Zitat" ,
widget : "text" ,
required : false ,
} ,
{
name : "author" ,
label : "Autor" ,
widget : "string" ,
required : false ,
} ,
] ,
} ,
{
name : "links" ,
label : "Informationsseiten" ,
widget : "list" ,
required : false ,
collapsed : true ,
fields : [
{
name : "title" ,
label : "Bezeichnung" ,
widget : "string" ,
required : true ,
} ,
{
name : "link" ,
label : "Link" ,
widget : "string" ,
required : true ,
} ,
] ,
} ,
] ,
} ,
] ,
} ;
export default IndexPagesCollection ;