From 435f1a7a2f2c3ec6924e3ec2c726c23d5453cc25 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 02 Nov 2025 15:29:34 +0000
Subject: [PATCH] expose more content to cms

---
 exampleSite/tina/collections/menu.ts |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/exampleSite/tina/collections/menu.ts b/exampleSite/tina/collections/menu.ts
index e69de29..6c874fa 100644
--- a/exampleSite/tina/collections/menu.ts
+++ b/exampleSite/tina/collections/menu.ts
@@ -0,0 +1,50 @@
+import { Collection } from "tinacms";
+
+const Menu: Collection = {
+  name: "menu",
+  label: "Menus",
+  path: "config/_default/menus/",
+  format: "toml",
+  ui: {
+    allowedActions: {
+      create: false,
+      delete: false,
+    }
+  },
+  match: {
+    include: "*menu*",
+  },
+  fields: [
+    {
+      type: "object",
+      name: "main",
+      label: "Main Menu",
+      list: true,
+      ui: {
+        itemProps: (item) => {
+          return { label: item?.name };
+        }
+      },
+      fields: [
+        {
+          type: "string",
+          name: "name",
+          label: "Name"
+        },
+        {
+          type: "string",
+          name: "url",
+          label: "URL"
+        },
+        {
+          type: "string",
+          name: "weight",
+          label: "Weight",
+          description: "Controls ordering"
+        },
+      ]
+    }
+  ]
+};
+
+export default Menu;

--
Gitblit v1.10.0