You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this section, you can learn how to register and create a custom Menu for the Umbraco backoffice.
12
+
13
+
### Manifest
14
+
15
+
The manifest file can be created using either JSON or Typescript. Both methods are shown below.
16
+
17
+
{% tabs %}
18
+
19
+
{% tab title="Json" %}
20
+
21
+
We can create the manifest using json in the umbraco-package.json.
22
+
10
23
```json
11
24
{
12
25
"type": "menu",
13
26
"alias": "My.Menu",
14
27
"name": "My Menu"
15
28
}
16
29
```
30
+
{% endtab %}
31
+
32
+
{% tab title="Typescript" %}
33
+
34
+
The manifest can also be written in TypeScript.
35
+
36
+
For this typescript example we used a [Backoffice Entry Point](../../extending-overview/extension-types/backoffice-entry-point) extension to register the manifests
In this section, you can learn how to add custom Menu Items to your Umbraco backoffice Menu.
63
+
64
+
### Manifest
65
+
37
66
To add custom menu items, you can define a single MenuItem manifest and link an element to it. In this element, you can fetch the data and render as many menu items as you want based on that data.
38
67
39
68
The code snippets below show how to declare a new menu item using JSON or Typescript.
40
69
41
-
### JSON Manifest
70
+
{% tabs %}
71
+
72
+
{% tab title="Json" %}
73
+
74
+
We can create the manifest using json in the umbraco-package.json.
42
75
43
76
```json
44
77
{
@@ -53,7 +86,13 @@ The code snippets below show how to declare a new menu item using JSON or Typesc
53
86
}
54
87
```
55
88
56
-
### Typescript Manifest
89
+
{% endtab %}
90
+
91
+
{% tab title="Typescript" %}
92
+
93
+
The manifest can also be written in TypeScript.
94
+
95
+
For this typescript example we used a [Backoffice Entry Point](../../extending-overview/extension-types/backoffice-entry-point) extension to register the manifests
0 commit comments