Skip to content

Commit 050b97a

Browse files
committed
Small formatting tweak
1 parent 816a27d commit 050b97a

File tree

1 file changed

+5
-0
lines changed
  • 16/umbraco-cms/customizing/extending-overview/extension-types/sections

1 file changed

+5
-0
lines changed

16/umbraco-cms/customizing/extending-overview/extension-types/sections/section-view.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ are shown below.
2929
{% tab title="Json" %}
3030
Extensions authors can register the Section View extension using a JSON declaration in the `umbraco-package.json` file.
3131

32+
{% code title="umbraco-package.json" %}
3233
```json
3334
{
3435
"type": "sectionView",
@@ -48,6 +49,7 @@ Extensions authors can register the Section View extension using a JSON declarat
4849
]
4950
}
5051
```
52+
{% endcode %}
5153

5254
Tip: We recommend using the absolute path, starting from the root of your Umbraco project, in the `element` property for
5355
JSON declarations. TypeScript declarations are capable of employing relative paths.
@@ -59,6 +61,7 @@ The manifest can also be written in TypeScript.
5961

6062
For this TypeScript example we used a [Backoffice Entry Point](../backoffice-entry-point.md) extension to register the manifests.
6163

64+
{% code title="my-section.element.ts" %}
6265
```typescript
6366
import { ManifestSectionView } from '@umbraco-cms/backoffice/section';
6467

@@ -82,6 +85,8 @@ const sectionViews: Array<ManifestSectionView> = [
8285
}
8386
]
8487
```
88+
{% endcode %}
89+
8590
{% endtab %}
8691
{% endtabs %}
8792

0 commit comments

Comments
 (0)