Gwk-Cultural-Park/schemas/examp.ts
2024-09-07 08:40:25 +07:00

35 lines
811 B
TypeScript

export default {
name: 'article',
title: 'Article',
type: 'document',
groups: [
{
name: 'seo',
title: 'SEO',
},
{
name: 'media',
title: 'Media',
},
],
fields: [
{ name: 'title', title: 'Title', type: 'string' },
{ name: 'icon', title: 'Icon', type: 'image', group: 'media' },
{
name: 'related',
title: 'Related',
type: 'array',
of: [{ type: 'reference', to: [{ type: 'article' }] }],
},
{ name: 'field1', title: 'SEO title', type: 'string', group: 'seo' },
{ name: 'field2', title: 'Keywords', type: 'string', group: 'seo' },
{ name: 'field3', title: 'Slug', type: 'slug', group: 'seo' },
{
name: 'seoImage',
title: 'Image',
type: 'image',
group: ['seo', 'media'],
},
],
}