Folders
Configuring folders to organise trees in Umbraco UI Builder.
Last updated
Was this helpful?
Configuring folders to organise trees in Umbraco UI Builder.
Last updated
Was this helpful?
Folders help organize trees in Umbraco UI Builder, allowing you to structure content with nested folders and collections. A folder can exist within a tree or as a sub-folder within another folder. Folders can contain either sub-folders or Collections.
To define a folder, use one of the AddFolder
methods on a Tree
or parent Folder
config builder instance.
AddFolder()
MethodAdds a folder to the current tree with the specified name and a default folder icon.
AddFolder()
Method with Custom IconAdds a folder to the current tree with a specified name and icon.
When creating a new folder, an alias is automatically generated. However, if you need a specific alias, you can use the SetAlias
method to override it.
SetAlias()
MethodSets a custom alias for a folder.
SetIconColor()
MethodSets the folder icon color to the given color. The available colors are: black
, green
, yellow
, orange
, blue
, or red
.
AddFolder()
Method for Sub-FoldersAdds a sub-folder inside the current folder with a specified name and a default folder icon.
AddFolder()
Method for Sub-Folders with Custom IconAdds a sub folder to the current folder with a specified name and custom icon.
AddCollection<>()
MethodAdds a collection to the current folder with the given names, descriptions, and default icons. The ID property must be defined. For more details, see the Collections article.
AddCollection<>()
Method with Custom IconsAdds a collection to the current folder with the given names, description and icons. The ID property must be defined. For more details, see the Collections article.