revert 65260f63c67562ea2821c31d37a0ac3caa755fd8
revert Static CMS v4 (#250) Schließt #247 Reviewed-on: #250
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { DateFormat, MarkdownProps, ImageProps } from "../props.js";
|
||||
import { DateFormat, MarkdownProps } from "../props.js";
|
||||
import {
|
||||
AuthorRelation,
|
||||
DescriptionText,
|
||||
@ -24,16 +24,12 @@ const BlogCollection = {
|
||||
field: "type",
|
||||
value: "post",
|
||||
},
|
||||
view_groups: {
|
||||
default: "draft",
|
||||
groups: [
|
||||
{
|
||||
name: "draft",
|
||||
label: "Entwurf",
|
||||
field: "draft",
|
||||
},
|
||||
],
|
||||
},
|
||||
view_groups: [
|
||||
{
|
||||
label: "Entwurf",
|
||||
field: "draft",
|
||||
},
|
||||
],
|
||||
sortable_fields: {
|
||||
fields: ["date", "title"],
|
||||
default: {
|
||||
@ -57,9 +53,9 @@ const BlogCollection = {
|
||||
name: "image",
|
||||
label: "Titelbild",
|
||||
hint: "16:9 Seitenverhältnis beachten",
|
||||
default: "/media/image.webp",
|
||||
...ImageProps,
|
||||
widget: "image",
|
||||
required: true,
|
||||
default: "/media/image.webp",
|
||||
},
|
||||
AuthorRelation,
|
||||
{
|
||||
@ -106,6 +102,7 @@ const BlogCollection = {
|
||||
{
|
||||
name: "body",
|
||||
label: "Inhalt",
|
||||
widget: "markdown",
|
||||
required: true,
|
||||
...MarkdownProps,
|
||||
},
|
||||
|
Reference in New Issue
Block a user