wwwlayermeshusa/src/search/fieldOverrides.ts
2026-02-11 07:19:33 +01:00

62 lines
960 B
TypeScript

import { Field } from 'payload'
export const searchFields: Field[] = [
{
name: 'slug',
type: 'text',
index: true,
admin: {
readOnly: true,
},
},
{
name: 'meta',
label: 'Meta',
type: 'group',
index: true,
admin: {
readOnly: true,
},
fields: [
{
type: 'text',
name: 'title',
label: 'Title',
},
{
type: 'text',
name: 'description',
label: 'Description',
},
{
name: 'image',
label: 'Image',
type: 'upload',
relationTo: 'media',
},
],
},
{
label: 'Categories',
name: 'categories',
type: 'array',
admin: {
readOnly: true,
},
fields: [
{
name: 'relationTo',
type: 'text',
},
{
name: 'categoryID',
type: 'text',
},
{
name: 'title',
type: 'text',
},
],
},
]