Skip to content

Commit 1031c84

Browse files
authored
Merge pull request #6671 from umbraco/cms/updatedCodeSample
Update code snippet
2 parents 7655244 + a589bed commit 1031c84

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

14/umbraco-cms/customizing/extending-overview/extension-types/section-sidebar.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,20 @@ interface UmbSectionSidebarAppElement {}
4343

4444
```typescript
4545
{
46-
"type": "menuSectionSidebarApp",
46+
"type": "sectionSidebarApp",
47+
"kind": "menu",
4748
"alias": "My.SectionSidebarApp.MyMenu",
4849
"name": "My Menu Section Sidebar App",
4950
"meta": {
5051
"label": "My Sidebar Menu",
51-
"sections": ["My.Section"],
5252
"menu": "My.Menu"
53-
}
53+
},
54+
"conditions": [
55+
{
56+
"alias": "Umb.Condition.SectionAlias",
57+
"match": "My.Section"
58+
}
59+
]
5460
}
5561
```
5662

15/umbraco-cms/customizing/extending-overview/extension-types/section-sidebar.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,20 @@ interface UmbSectionSidebarAppElement {}
4343

4444
```typescript
4545
{
46-
"type": "menuSectionSidebarApp",
46+
"type": "sectionSidebarApp",
47+
"kind": "menu",
4748
"alias": "My.SectionSidebarApp.MyMenu",
4849
"name": "My Menu Section Sidebar App",
4950
"meta": {
5051
"label": "My Sidebar Menu",
51-
"sections": ["My.Section"],
5252
"menu": "My.Menu"
53-
}
53+
},
54+
"conditions": [
55+
{
56+
"alias": "Umb.Condition.SectionAlias",
57+
"match": "My.Section"
58+
}
59+
]
5460
}
5561
```
5662

0 commit comments

Comments
 (0)