Erste brauchbare Version

This commit is contained in:
timg
2026-08-31 19:55:41 +02:00
parent 080c4d0f39
commit 892a4d4747
35 changed files with 7103 additions and 219 deletions
+36
View File
@@ -0,0 +1,36 @@
import { type CollectionConfig } from 'payload';
export const Media: CollectionConfig = {
slug: 'media',
upload: {
staticDir: 'media'
},
labels: {
singular: 'Medium',
plural: 'Medien'
},
admin: {
useAsTitle: 'title',
group: 'Inhalte',
description: 'Artikel verwalten',
defaultColumns: [ 'id', 'title', 'alt' ],
hideAPIURL: true
},
fields: [
{
name: 'title',
label: 'Titel',
type: 'text',
required: true
},
{
name: 'alt',
label: 'Alt-Tag',
type: 'text'
}
]
};