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
+22 -3
View File
@@ -1,7 +1,14 @@
import type { CollectionConfig } from 'payload'
import { buildSlugField } from '@intecion/ipal-kit'
export const Pages: CollectionConfig = {
slug: 'pages',
admin: {
useAsTitle: 'title',
},
access: {
read: () => true,
},
fields: [
{
name: 'title',
@@ -9,10 +16,22 @@ export const Pages: CollectionConfig = {
localized: true,
required: true,
},
buildSlugField(),
{
name: 'content',
type: 'richText',
localized: true,
name: 'layout',
type: 'blocks',
minRows: 1,
blocks: [
{
slug: 'TextSection',
fields: [
{
name: 'text',
type: 'text',
}
]
}
]
}
],
}