mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 04:26:43 -06:00
Just a commit point while I'm testing stuff. Already decided at this point to simplify and revert away from PayloadCMS.
32 lines
531 B
TypeScript
32 lines
531 B
TypeScript
import type { CollectionConfig } from "payload";
|
|
|
|
export const Links: CollectionConfig = {
|
|
slug: "links",
|
|
admin: {
|
|
useAsTitle: "url",
|
|
},
|
|
fields: [
|
|
{
|
|
name: "url",
|
|
type: "text",
|
|
required: true,
|
|
label: "URL",
|
|
},
|
|
{
|
|
name: "icon",
|
|
type: "text",
|
|
label: "Icon (FontAwesome class)",
|
|
},
|
|
{
|
|
name: "description",
|
|
type: "text",
|
|
},
|
|
{
|
|
name: "project",
|
|
type: "relationship",
|
|
relationTo: "projects",
|
|
required: true,
|
|
},
|
|
],
|
|
};
|