feat: setup globals (Footer), sqlite migration, seed update and access rules
This commit is contained in:
@@ -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',
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user