Section View
Add auxiliary views to your own Umbraco packages, or to other areas of the Umbraco backoffice.
Last updated
Was this helpful?
Was this helpful?
{
"type": "sectionView",
"alias": "My.SectionView",
"name": "My Section View",
"element": "/App_Plugins/<package_name>/my-section.element.js",
"meta": {
"label": "My View",
"icon": "icon-add",
"pathname": "my-view"
},
"conditions": [
{
"alias": "Umb.Condition.SectionAlias",
"match": "My.Section"
}
]
}import type { ManifestSectionView } from '@umbraco-cms/backoffice/section';
const sectionViews: Array<ManifestSectionView> = [
{
type: "sectionView",
alias: "My.SectionView",
name: "My Section View",
element: () => import('./my-section.element.ts'),
meta: {
label: "My View",
icon: "icon-add",
pathname: "my-view",
},
conditions: [
{
alias: 'Umb.Condition.SectionAlias',
match: 'My.Section',
}
]
}
]import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import { css, html, customElement, property } from '@umbraco-cms/backoffice/external/lit';
@customElement('my-sectionview-element')
export class MySectionViewElement extends UmbLitElement {
override render() {
return html`
<uui-box headline="Sectionview Title goes here">
Sectionview content goes here
</uui-box>
`
}
static override readonly styles = [
css`
:host {
display: block;
padding: 20px;
}
`,
];
}
export default MySectionViewElement;
declare global {
interface HTMLElementTagNameMap {
'my-sectionview-element': MySectionViewElement;
}
}[
{
"type": "section",
"alias": "NetworkServices.Section",
"name": "Network Services",
"meta": {
"label": "Network Services",
"pathname": "network-services"
}
},
{
"type": "sectionView",
"alias": "NetworkServices.Section.Overview",
"name": "Network Services Overview",
"element": "/App_Plugins/NetworkServices/overview-dashboard.js",
"meta": {
"label": "Overview",
"icon": "icon-add",
"pathname": "overview"
},
"conditions": [
{
"alias": "Umb.Condition.SectionAlias",
"match": "NetworkServices.Section"
}
]
}
]{
"type": "sectionView",
"alias": "My.SectionView",
"name": "My Section View",
"element": "/App_Plugins/<package_name>/my-section.element.js",
"meta": {
"label": "My View",
"icon": "icon-add",
"pathname": "my-view"
},
"conditions": [
{
"alias": "Umb.Condition.SectionAlias",
"match": "Umb.Section.Content"
}
]
}