An overview of the availabe extension types related to sections.
Append a secondary view for a Section, use it for additional features or information.
This page is a work in progress and may undergo further revisions, updates, or amendments. The information contained herein is subject to change without notice.
In this section, you can learn how to register and create a custom Section View for the Umbraco backoffice.
The manifest file can be created using either JSON or Typescript. Both methods are shown below.
We can create the manifest using json in the umbraco-package.json
.
The manifest can also be written in TypeScript.
For this typescript example we used a Backoffice Entry Point extension to register the manifests.
Creating the Section View Element using a Lit Element.
my-section.element.ts:
A guide to creating a section
This page is a work in progress and may undergo further revisions, updates, or amendments. The information contained herein is subject to change without notice.
The Umbraco backoffice consists of Sections. Section is the main division shown in the top navigation.
For example, when you load the backoffice, you'll see the 'Content' section, 'Settings' section, and so on.
You can create your own sections to extend Umbraco with room for more features.
When creating a new section it's recommended to use a Entry Point-extension in your Umbraco Package Manifest. This is to get better control over all the additional extensions required for the new section.
Create a section by defining a manifest for it:
Once registered, you will be able to select this action for your User Group Permissions. Once that is permitted, you can view your section.
Once a section is registered, it can be extended like any other section.
Here is a list of appropriate extensions to append to your section:
If you prefer full control over the content of your section you can choose to define an element for the content of your section.
This is not recommended as it limits the content of your section to this element. Instead, it is recommended to use a single Dashboard or Section View.
If you like to have full control, you can define an element like this:
The element file must have an element
or default
export, or specify the element name in the elementName
field.
This page is a work in progress and may undergo further revisions, updates, or amendments. The information contained herein is subject to change without notice.
Manifest
Default Element
Sidebar Menu:
The Backoffice comes with a menu sidebar app that can be used to create a menu in the sidebar.
To register a new menu sidebar app, add the following to your manifest
The menu sidebar app will reference a menu that you have registered in the menu with a menu manifest
Manifest
Default Element
Adding Items to an existing menu
This will make it possible to compose a sidebar menu from multiple Apps:
You can read more about this in the article.