File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
16/umbraco-cms/customizing/extending-overview/extension-types/sections Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ are shown below.
2929{% tab title="Json" %}
3030Extensions 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
5254Tip: We recommend using the absolute path, starting from the root of your Umbraco project, in the ` element ` property for
5355JSON declarations. TypeScript declarations are capable of employing relative paths.
@@ -59,6 +61,7 @@ The manifest can also be written in TypeScript.
5961
6062For 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
6366import { 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
You can’t perform that action at this time.
0 commit comments