revert 65260f63c67562ea2821c31d37a0ac3caa755fd8
All checks were successful
website-main / prod-build (push) Successful in 11s
website-main / test-build (push) Successful in 5s

revert Static CMS v4 (#250)

Schließt #247

Reviewed-on: #250
This commit is contained in:
2023-12-12 17:13:58 +01:00
parent 7b229dce9b
commit f0a4bac2bd
22 changed files with 121 additions and 143 deletions

View File

@ -1,4 +1,4 @@
import { MarkdownProps, ImageProps } from "../props.js";
import { MarkdownProps } from "../props.js";
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
const CantorforaCollection = {
@ -19,6 +19,12 @@ const CantorforaCollection = {
frame: true,
size: "half",
},
view_groups: [
{
label: "Entwürfe",
field: "draft",
},
],
summary_fields: ["title", "draft", "description"],
sortable_fields: {
fields: ["index", "title"],
@ -44,8 +50,8 @@ const CantorforaCollection = {
{
name: "image",
label: "Titelbild",
widget: "image",
default: "/media/image.webp",
...ImageProps,
required: true,
},
{
@ -57,6 +63,7 @@ const CantorforaCollection = {
{
name: "body",
label: "Text",
widget: "markdown",
required: true,
...MarkdownProps,
},