Initial commit
This commit is contained in:
34
packages/navigation/src/integrations/cms/globals/header.ts
Normal file
34
packages/navigation/src/integrations/cms/globals/header.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import type { GlobalConfig } from "payload";
|
||||
|
||||
export const header: GlobalConfig = {
|
||||
slug: "header",
|
||||
custom: {
|
||||
retention: {
|
||||
purgeSchedule: "monthly",
|
||||
postDeletion: {
|
||||
duration: "P90D",
|
||||
trigger: "after-deletion",
|
||||
action: "hard-delete",
|
||||
},
|
||||
},
|
||||
},
|
||||
admin: {
|
||||
group: "Navigation",
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: "logo",
|
||||
type: "upload",
|
||||
relationTo: "media",
|
||||
},
|
||||
{
|
||||
name: "items",
|
||||
type: "array",
|
||||
fields: [
|
||||
{ name: "label", type: "text", required: true },
|
||||
{ name: "href", type: "text", required: true },
|
||||
{ name: "external", type: "checkbox", defaultValue: false },
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
2
packages/navigation/src/integrations/cms/index.ts
Normal file
2
packages/navigation/src/integrations/cms/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { header } from "./globals/header";
|
||||
// <gen:job-tasks>
|
||||
Reference in New Issue
Block a user