A section is a distinct area of the Umbraco backoffice, such as content, media, etc. The section is accessed via a link in the main menu at the top of the Umbraco interface. Umbraco UI Builder allows you to define multiple sections in order to organise the management of your models into logical sections.
Defining a section
You can define a section by calling one of the AddSection methods on the root level UIBuilderConfigBuilder instance.
Adds a section to the Umbraco menu with the given name after the section with the given alias.
// Example
config.AddSectionAfter("media", "Repositories", sectionConfig => {
...
});
Changing a section alias
SetAlias(string alias) : SectionConfigBuilder
Sets the alias of the section.
Optional: When adding a new section, an alias is automatically generated from the supplied name for you. However, if you need a specific alias you can use the SetAlias method to override this.
// Example
sectionConfig.SetAlias("repositories");
Adds a dashboard with the given name after the dashboard with the given alias. For more information check the Dashboards documentation.
// Example
sectionConfig.AddDashboardAfter("contentIntro", "Team", dashboardConfig => {
...
});
Extending an existing section
You can extend existing sections by adding Umbraco UI Builder trees and dashboards, context apps, and virtual subtrees. This can be done by calling the WithSection method on the root level UIBuilderConfigBuilder instance.