Initial release of Moniki paid services site and CMS (v1.0.0).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import type { CollectionConfig } from 'payload'
|
||||
import { ADMIN_GROUP } from '../admin/groups'
|
||||
|
||||
export const Specialties: CollectionConfig = {
|
||||
slug: 'specialties',
|
||||
labels: { singular: 'Направление', plural: 'Направления' },
|
||||
admin: { group: ADMIN_GROUP.catalog, useAsTitle: 'title' },
|
||||
access: { read: () => true },
|
||||
fields: [
|
||||
{ name: 'title', type: 'text', required: true, localized: true },
|
||||
{ name: 'slug', type: 'text', required: true, unique: true },
|
||||
{ name: 'description', type: 'textarea', localized: true },
|
||||
{ name: 'icon', type: 'text', admin: { description: 'Имя иконки Untitled UI' } },
|
||||
{ name: 'sortOrder', type: 'number', defaultValue: 0 },
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user