You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
462 B
TypeScript

import type { CollectionConfig } from "payload";
import { Menu } from "../groups/Menu";
export const MenuItemTag: CollectionConfig = {
slug: "menu-item-tag",
access: {
read: () => true,
},
admin: {
useAsTitle: "name",
group: Menu,
},
fields: [
{
name: "name",
type: "text",
required: true,
localized: true,
},
{
name: "description",
type: "richText",
localized: true,
},
],
};