Umbraco UI Builder
CMSCloudHeartcoreDXP
10.latest (LTS)
10.latest (LTS)
  • Umbraco UI Builder Documentation
  • Known Issues
  • Release Notes
  • Installation
    • Installing Umbraco UI Builder
    • Licensing
  • Upgrading
    • Upgrading Umbraco UI Builder
    • Version Specific Upgrade Notes
    • Migrate from Konstrukt to Umbraco UI Builder
  • Getting Started
    • Overview
    • Configuration
    • User Interface
  • How-to Guides
    • Creating your first integration
  • Areas
    • Overview
    • Sections
      • Summary Dashboards
    • Trees
      • Folders
    • Dashboards
    • Context Apps
  • Collections
    • Overview
    • The Basics
    • List Views
      • Field Views
    • Editors
    • Child Collections
      • Child Collection Groups
  • Searching
    • Overview
    • Searchable Properties
  • Filtering
    • Overview
    • Global Filters
    • Data Views
      • Data Views Builders
    • Filterable Properties
  • Actions
    • Overview
    • The Basics
    • Action Visibility
    • Inbuilt Actions
  • Cards
    • Overview
    • Count Cards
    • Custom Cards
  • Property Editors
    • Overview
    • Entity Picker
  • Advanced
    • Virtual Sub Trees
    • Encrypted Properties
    • Value Mappers
    • Repositories
    • Events
  • Miscellaneous
    • Conventions
    • Umbraco Aliases
Powered by GitBook
On this page
  • Defining a section
  • AddSection(string name, Lambda sectionConfig = null) : SectionConfigBuilder
  • AddSectionBefore(string beforeAlias, string name, Lambda sectionConfig = null) : SectionConfigBuilder
  • AddSectionAfter(string afterAlias, string name, Lambda sectionConfig = null) : SectionConfigBuilder
  • Changing a section alias
  • SetAlias(string alias) : SectionConfigBuilder
  • Configuring the section tree
  • Tree(Lambda treeConfig = null) : TreeConfigBuilder
  • Adding a dashboard to the section
  • AddDashboard(string name, Lambda dashboardConfig = null) : DashboardConfigBuilder
  • Extending an existing section
  • WithSection(string alias, Lambda sectionConfig = null) : WithSectionConfigBuilder
  • Adding a tree to an existing section
  • AddTree(string name, string icon, Lambda treeConfig = null) : TreeConfigBuilder
  • Adding a dashboard to an existing section
  • AddDashboard (string name, Lambda dashboardConfig = null) : DashboardConfigBuilder
  • AddDashboardBefore (string beforeAlias, string name, Lambda dashboardConfig = null) : DashboardConfigBuilder
  • AddDashboardAfter (string afterAlias, string name, Lambda dashboardConfig = null) : DashboardConfigBuilder
Edit on GitHub
Export as PDF
  1. Areas

Sections

Configuring sections in Umbraco UI Builder, the backoffice UI builder for Umbraco.

PreviousOverviewNextSummary Dashboards

Last updated 1 year ago

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.

AddSection(string name, Lambda sectionConfig = null) : SectionConfigBuilder

Adds a section to the Umbraco menu with the given name.

// Example
config.AddSection("Repositories", sectionConfig => {
    ...
});

AddSectionBefore(string beforeAlias, string name, Lambda sectionConfig = null) : SectionConfigBuilder

Adds a section to the Umbraco menu with the given name before the section with the given alias.

// Example
config.AddSectionBefore("settings", "Repositories", sectionConfig => {
    ...
});

AddSectionAfter(string afterAlias, string name, Lambda sectionConfig = null) : SectionConfigBuilder

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");

Configuring the section tree

Tree(Lambda treeConfig = null) : TreeConfigBuilder

// Example
sectionConfig.Tree(treeConfig => {
    ...
});

Adding a dashboard to the section

AddDashboard(string name, Lambda dashboardConfig = null) : DashboardConfigBuilder

// Example
sectionConfig.AddDashboard("Team", dashboardConfig => {
    ...
});

AddDashboardBefore(string beforeAlias, string name, Lambda dashboardConfig = null) : DashboardConfigBuilder

// Example
sectionConfig.AddDashboardBefore("contentIntro", "Team", dashboardConfig => {
    ...
});

AddDashboardAfter(string afterAlias, string name, Lambda dashboardConfig = null) : DashboardConfigBuilder

// 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.

WithSection(string alias, Lambda sectionConfig = null) : WithSectionConfigBuilder

Starts a sub-configuration for the existing Umbraco section with the given alias.

// Example
config.WithSection("member", withSectionConfig => {
    ...
});

Adding a tree to an existing section

AddTree(string name, string icon, Lambda treeConfig = null) : TreeConfigBuilder

// Example
withSectionConfig.AddTree("My Tree", "icon-folder", treeConfig => {
    ...
});

AddTree(string groupName, string name, string icon, Lambda treeConfig = null) : TreeConfigBuilder

// Example
withSectionConfig.AddTree("My Group", "My Tree", "icon-folder", treeConfig => {
    ...
});

AddTreeBefore(string treeAlias, string name, string icon, Lambda treeConfig = null) : TreeConfigBuilder

// Example
withSectionConfig.AddTreeBefore("member", "My Tree", "icon-folder", treeConfig => {
    ...
});

AddTreeAfter(string treeAlias, string name, string icon, Lambda treeConfig = null) : TreeConfigBuilder

// Example
withSectionConfig.AddTreeAfter("member", "My Tree", "icon-folder", treeConfig => {
    ...
});

Adding a dashboard to an existing section

AddDashboard (string name, Lambda dashboardConfig = null) : DashboardConfigBuilder

// Example
withSectionConfig.AddDashboard("Team", dashboardConfig => {
    ...
});

AddDashboardBefore (string beforeAlias, string name, Lambda dashboardConfig = null) : DashboardConfigBuilder

// Example
withSectionConfig.AddDashboardBefore("contentIntro", "Team", dashboardConfig => {
    ...
});

AddDashboardAfter (string afterAlias, string name, Lambda dashboardConfig = null) : DashboardConfigBuilder

// Example
withSectionConfig.AddDashboardAfter("contentIntro", "Team", dashboardConfig => {
    ...
});

Accesses the tree config of the current section. For more information check the .

Adds a dashboard with the given name. For more information check the .

Adds a dashboard with the given name before the dashboard with the given alias. For more information check the .

Adds a dashboard with the given name after the dashboard with the given alias. For more information check the .

Adds a tree to the current section. For more information check the .

Adds a tree to the current section in a group with the given name. For more information check the .

Adds a tree to the current section before the tree with the given alias. For more information check the .

Adds a tree to the current section after the tree with the given alias. For more information check the .

Adds a dashboard with the given name. For more information check the .

Adds a dashboard with the given name before the dashboard with the given alias. For more information check the .

Adds a dashboard with the given name after the dashboard with the given alias. For more information check the .

Trees documentation
Dashboards documentation
Dashboards documentation
Dashboards documentation
Trees documentation
Trees documentation
Trees documentation
Trees documentation
Dashboards documentation
Dashboards documentation
Dashboards documentation
Sections