umbraco-menu

v2026.09.25

Implement menus in Umbraco backoffice using official docs

GitHub
安装命令
npx skhub add umbraco/umbraco-menu
Markdown
SKILL.md

Umbraco Menu

What is it?

Menus are extension components that display throughout the Umbraco backoffice interface, including in sidebars and button flyouts. They serve as containers for one or more menu item extensions, enabling organized navigation and action grouping. Menu items are configured separately and can be added to existing menus or custom menus.

Documentation

Always fetch the latest docs before implementing:

Workflow

  1. Fetch docs - Use WebFetch on the URLs above
  2. Ask questions - New menu or extend existing? What items? Where displayed?
  3. Generate files - Create manifest for menu + menu items based on latest docs
  4. Explain - Show what was created and how to test

Minimal Examples

Custom Menu (umbraco-package.json)

{
  "type": "menu",
  "alias": "My.Menu",
  "name": "My Menu"
}

Menu Item for Custom Menu (manifest.ts)

export const manifests = [
  {
    type: "menuItem",
    kind: "link",
    alias: "My.MenuItem",
    name: "My Menu Item",
    weight: 100,
    meta: {
      menus: ["My.Menu"],
      label: "My Item",
      icon: "icon-document",
      href: "/my-link"
    }
  }
];

Extending Existing Menu (Help Menu Example)

{
  "type": "menuItem",
  "kind": "link",
  "alias": "My.MenuItem.Help",
  "name": "Custom Help Item",
  "weight": 300,
  "meta": {
    "menus": ["Umb.Menu.Help"],
    "label": "My Documentation",
    "icon": "icon-help",
    "href": "https://my-docs.com"
  }
}

TypeScript Import (Help Menu)

import { UMB_HELP_MENU_ALIAS } from "@umbraco-cms/backoffice/help";

const manifest = {
  type: "menuItem",
  kind: "link",
  alias: "My.MenuItem.Help",
  name: "My Help Item",
  meta: {
    menus: [UMB_HELP_MENU_ALIAS],
    label: "Documentation",
    icon: "icon-book"
  }
};

Common Built-in Menus

  • Umb.Menu.Help - Help menu in header
  • Umb.Menu.Content - Content section menu
  • Umb.Menu.Media - Media section menu
  • Umb.Menu.Settings - Settings section menu

Key Properties

  • type: "menu" for menu container, "menuItem" for items
  • alias: Unique identifier
  • menus: Array of menu aliases this item should appear in
  • weight: Controls ordering (higher = later in list)
  • kind: Menu item type ("link", "default", etc.)

That's it! Always fetch fresh docs, keep examples minimal, generate complete working code.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

2026年9月25日

分类

未分类

许可证

未指定

源路径

plugins/umbraco-backoffice-skills/skills/umbraco-menu

默认分支

main

最新提交

78b551b

Tree SHA

09faac3