add content type

This commit is contained in:
Michi 2025-04-06 11:06:59 +02:00
parent 3da65df407
commit d8b0af9a94

View file

@ -2,6 +2,8 @@ media:
input: static/assets input: static/assets
output: assets output: assets
settings: false
content: content:
- name: general - name: general
label: General label: General
@ -78,7 +80,6 @@ content:
type: string type: string
- name: socialmedia - name: socialmedia
label: Social Media label: Social Media
type: file type: file
@ -130,4 +131,30 @@ content:
label: Enabled by default label: Enabled by default
description: Determines if the tag is shown by default description: Determines if the tag is shown by default
type: boolean type: boolean
default: True default: True
- name: content
label: Content
type: collection
path: content
icon: file-text
view:
fields:
- title
fields:
- name: title
label: Title
type: string
required: true
- name: slug
label: Slug
description: The slug of the current section (used for the navigation, etc.)
type: string
required: true
- name: body
label: Content
type: rich-text
options:
format: markdown
media: false
required: false