Configuring trees in Umbraco UI Builder, the backoffice UI builder for Umbraco.
A tree is a hierarchical structure that helps organize a section into logical sub-sections. A tree is accessed in the main side panel of the Umbraco interface. In Umbraco UI Builder, a section may only have a single tree definition. However, you can use folder nodes to help organize the tree structure as you need it.
The tree configuration for Umbraco UI Builder sections is a sub-configuration of a Section
config builder instance and is accessed via its Tree
method.
Accesses the tree config of the given section.
The tree configuration for existing sections is a sub-configuration of a WithSection
config builder instance and is accessed via one of its AddTree
methods.
Adds a tree to the current section.
Adds a tree to the current section in a group with the given name.
Adds a tree to the current section before the tree with the given alias.
Adds a tree to the current section after the tree with the given alias.
Sets the trees icon color to the given color. The options that are possible are black
, green
, yellow
, orange
, blue
or red
.
Only trees added to existing sections have an icon. Trees added to Umbraco UI Builder sections don't show a tree icon instead they go straight into displaying the tree contents.
Adds a group to the current tree with the given name.
Only Umbraco UI Builder section trees can configure groups, where trees added to existing sections cannot.
Adds a folder to the current tree/group with the given name and a default folder icon. For more information check the Folders documentation.
Adds a folder to the current tree/group with the given name + icon. For more information check the Folders documentation.
Adds a collection to the current tree/group with the given names, descriptions, and default icons. An ID property accessor expression is required so that Umbraco UI Builder knows which property is the ID property. For more information check the Collections documentation.
Adds a collection to the current tree/group with the given names, description and icons. An ID property accessor expression is required so that Umbraco UI Builder knows which property is the ID property. For more information check the Collections documentation.
You can extend existing trees adding Umbraco UI Builder context apps and virtual sub trees by calling the WithTree
method of a WithSectionConfigBuilder
instance.
Starts a sub-configuration for the existing Umbraco tree with the given alias.
Adds a context app with the given name and default icon. For more information check the Context App documentation.
Adds a context app to the Umbraco menu with the given name and icon. For more information check the Context App documentation.
Adds a context app with the given name and default icon before the context app with the given alias. For more information check the Context App documentation.
Adds a context app to the Umbraco menu with the given name and icon before the context app with the given alias. For more information check the Context App documentation.
Adds a context app with the given name and default icon after the context app with the given alias. For more information check the Context App documentation.
Adds a context app to the Umbraco menu with the given name and icon after the context app with the given alias. For more information check the Context App documentation.
Configuring folders to organise trees in Umbraco UI Builder, the backoffice UI builder for Umbraco.
A folder can appear in either a tree or as a sub folder to other folders. Folders can contain either other (sub)folders or .
Adds a folder to the current tree with the given name and a default folder icon.
Adds a folder to the current tree with the given name + icon.
Sets the alias of the folder.
Optional: When creating a new folder, 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.
Sets the folder icon color to the given color. The options that are possible are black
, green
, yellow
, orange
, blue
or red
.
Adds a sub folder to the current folder with the given name and a default folder icon.
Adds a sub folder to the current folder with the given name + icon.
You can define a folder by calling one of the AddFolder
methods on a given or parent Folder
config builder instance.
Adds a collection to the current folder with the given names, descriptions, and default icons. An ID property accessor expression is required so that Umbraco UI Builder knows which property is the ID property. For more information check the .
Adds a collection to the current folder with the given names, description and icons. An ID property accessor expression is required so that Umbraco UI Builder knows which property is the ID property. For more information check the .