feat: setup globals (Footer), sqlite migration, seed update and access rules

This commit is contained in:
MichalC
2026-08-31 22:37:06 +02:00
parent 5f2eaa0b37
commit 5a9128e2f5
31 changed files with 2281 additions and 362 deletions
+44
View File
@@ -0,0 +1,44 @@
import type { GlobalConfig } from 'payload'
export const Footer: GlobalConfig = {
slug: 'footer',
access: {
read: () => true,
},
fields: [
{
name: 'navigation',
type: 'array',
fields: [
{
name: 'page',
type: 'relationship',
relationTo: 'pages',
required: true,
},
],
},
{
name: 'association',
type: 'group',
fields: [
{
name: 'title',
type: 'text',
localized: true,
defaultValue: 'Członek b.b.h. Lohnsteuerhilfeverein e.V.',
},
{
name: 'logo',
type: 'upload',
relationTo: 'media',
},
{
name: 'link',
type: 'text',
defaultValue: 'https://bbh-lohnsteuerhilfe.de',
}
]
}
],
}