Umbraco UI Builder
CMSCloudHeartcoreDXP
15.latest
15.latest
  • Umbraco UI Builder Documentation
  • Known Issues
  • Release Notes
  • Getting Started
    • First Steps with UI Builder
    • Requirements
    • Installing Umbraco UI Builder
    • Licensing
    • Configuration
    • User Interface
  • Upgrading
    • Upgrade your UI Builder setup
    • Upgrading Umbraco UI Builder
    • Version Specific Upgrade Notes
    • Migrate from Konstrukt to Umbraco UI Builder
  • How-to Guides
    • Creating your First Integration
  • Areas
    • Explore Areas in UI Builder
    • Sections
      • Summary Dashboards
    • Trees
      • Folders
    • Dashboards
    • Context Apps
  • Collections
    • Work with Collections in UI Builder
    • The Basics
    • List Views
      • Field Views
    • Editors
    • Child Collections
      • Child Collection Groups
      • Retrieve Child Collections
    • Related Collections
    • Entity Identifier Converters
  • Searching
    • Add Search to Your Collections
    • Searchable Properties
  • Filtering
    • Filter Your Data with Ease
    • Global Filters
    • Data Views
      • Data Views Builders
    • Filterable Properties
  • Actions
    • Trigger Actions in UI Builder
    • The Basics
    • Action Visibility
    • Inbuilt Actions
  • Cards
    • Display Insights with Cards
    • Count Cards
    • Custom Cards
  • Property Editors
    • Enhance Input with Property Editors
    • Entity Picker
  • Advanced
    • Ready to go deeper?
    • Virtual Sub Trees
    • Encrypted Properties
    • Value Mappers
    • Repositories
    • Events
  • Miscellaneous
    • Conventions
    • Umbraco Aliases
Powered by GitBook
On this page
  • Defining a Section
  • Using the AddSection() Method
  • Using the AddSectionBefore() Method
  • Using the AddSectionAfter() Method
  • Customizing the Section Alias
  • Setting a Custom Alias with SetAlias() Method
  • Configuring the Section Tree
  • Using the Tree() Method for Configuration
  • Adding Dashboards to the Section
  • Adding a Dashboard with the AddDashboard() Method
  • Using AddDashboardBefore() to Place a Dashboard
  • Using AddDashboardAfter() to Place a Dashboard
  • Extending Existing Sections
  • Extending an Existing Section with WithSection()
  • Adding Trees to an Existing Section
  • Using the AddTree() Method
  • Grouping Trees with AddTree() Method
  • Adding a Tree Before or After an Existing Tree
  • Using AddTreeBefore() to Position a Tree
  • Using AddTreeAfter() to Position a Tree
  • Adding a Dashboard to an Existing Section
  • Using the AddDashboard() Method
  • Using the AddDashboardBefore() Method
  • Using the AddDashboardAfter() Method

Was this helpful?

Edit on GitHub
Export as PDF
  1. Areas

Sections

Configuring and customizing sections in Umbraco UI Builder to organize and manage the backoffice interface effectively.

PreviousExplore Areas in UI BuilderNextSummary Dashboards

Last updated 2 months ago

Was this helpful?

A section in Umbraco represents a distinct area within the backoffice, such as content, media, and so on. Sections are accessible via links in the main menu at the top of the Umbraco interface. Using Umbraco UI Builder, multiple sections can be defined to organize the management of models logically.

Defining a Section

Sections are defined using the AddSection method on the root-level UIBuilderConfigBuilder instance.

Using the AddSection() Method

This method adds a new section to the Umbraco menu with the specified name, allowing custom areas for organizing content in the backoffice.

Method Syntax

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

Example

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

Using the AddSectionBefore() Method

This method adds a section before another section with the specified alias, allowing for customized ordering of sections in the backoffice.

Method Syntax

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

Example

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

Using the AddSectionAfter() Method

This method adds a section after another section with the specified alias, allowing for a custom order of sections in the backoffice.

Method Syntax

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

Example

config.AddSectionAfter("media", "Repositories", sectionConfig => {
    ...
});

Customizing the Section Alias

Setting a Custom Alias with SetAlias() Method

This method sets a custom alias for the section.

Optional: By default, an alias is automatically generated from the section's name. To customize the alias, the SetAlias() method can be used.

Method Syntax

SetAlias(string alias) : SectionConfigBuilder

Example

sectionConfig.SetAlias("repositories");

Configuring the Section Tree

Using the Tree() Method for Configuration

This method configures the tree structure for the section, which is used to organize content types. For more information, see the Trees article.

Method Syntax

Tree(Lambda treeConfig = null) : TreeConfigBuilder

Example

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

Adding Dashboards to the Section

Adding a Dashboard with the AddDashboard() Method

This method adds a dashboard to the section with the specified alias, providing tools and features for content management. For more information, see the Dashboards article.

Method Syntax

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

Example

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

Using AddDashboardBefore() to Place a Dashboard

This method adds a dashboard before another dashboard with the specified alias, allowing custom placement in the section. For more information, see the Dashboards article.

Method Syntax

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

Example

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

Using AddDashboardAfter() to Place a Dashboard

This method adds a dashboard after another dashboard with the specified alias, giving control over dashboard order. For more information, see the Dashboards article.

Method Syntax

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

Example

sectionConfig.AddDashboardAfter("contentIntro", "Team", dashboardConfig => {
    ...
});

Extending Existing Sections

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.

Extending an Existing Section with WithSection()

This method extends an existing section with additional configuration, enabling more customization for existing areas.

Method Syntax

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

Example

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

Adding Trees to an Existing Section

Using the AddTree() Method

This method adds a tree to the section, helping to visualize and organize content types. For more information, see the Trees article.

Method Syntax

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

Example

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

Grouping Trees with AddTree() Method

This method adds a tree within a specified group, improving content organization by grouping related trees together. For more information, see the Trees article.

Method Syntax

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

Example

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

Adding a Tree Before or After an Existing Tree

Using AddTreeBefore() to Position a Tree

This method adds a tree before another tree within the section, allowing you to customize the tree order. For more information, see the Trees article.

Method Syntax

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

Example

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

Using AddTreeAfter() to Position a Tree

This method adds a tree after another tree within the section, enabling specific ordering of trees. For more information, see the Trees article.

Method Syntax

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

Using the AddDashboard() Method

This method adds a new dashboard to the section with the specified name. For more information, see the Dashboards article.

Method Syntax

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

Example

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

Using the AddDashboardBefore() Method

This method adds a dashboard before the dashboard with the specified alias. For more information, see the Dashboards article.

Method Syntax

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

Example

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

Using the AddDashboardAfter() Method

This method adds a dashboard after the dashboard with the specified alias. For more information, see the Dashboards article.

Method Syntax

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

Example

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