The Basics
An overview of the basics of configuring a collection in Umbraco UI Builder.
Defining a Collection
Using the AddCollection() Method
Method Syntax
AddCollection<TEntityType>(Lambda idFieldExpression, string nameSingular, string namePlural, string description, Lambda collectionConfig = null) : CollectionConfigBuilder<TEntityType>Example
folderConfig.AddCollection<Person>(p => p.Id, "Person", "People", "A collection of people", collectionConfig => {
...
});Using the AddCollection() Method with Icons
Method Syntax
AddCollection<TEntityType>(Lambda idFieldExpression, string nameSingular, string namePlural, string description, string iconSingular, string iconPlural, Lambda collectionConfig = null) : CollectionConfigBuilder<TEntityType>Example
Changing a Collection Alias
Using the SetAlias() Method
Method Syntax
Example
Changing a Collection Icon Color
Using the SetIconColor() Method
Method Syntax
Example
Defining an Entity Name
Using the SetNameProperty() Method
Method Syntax
Example
Using the SetNameProperty() Method with Custom Heading
Method Syntax
Example
Using the SetNameFormat() Method
Method Syntax
Example
Defining a Default Sort Order
Using the SetSortProperty() Method
Method Syntax
Example
Using the SetSortProperty() Method with Sort Direction
Method Syntax
Example
Defining Time Stamp Properties
Using the SetDateCreatedProperty Method
Method Syntax
Example
Using the SetDateModifiedProperty Method
Method Syntax
Example
Configuring Soft Deletes
Using the SetDeletedProperty() Method
Method Syntax
Example
Disabling Create, Update, or Delete Features
Using the DisableCreate() Method
Method Syntax
Example
Using the DisableCreate() Method with Conditions
Method Syntax
Example
Using the DisableUpdate() Method
Method Syntax
Example
Using the DisableUpdate() Method with Conditions
Method Syntax
Example
Using the DisableDelete() Method
Method Syntax
Example
Using the DisableDelete() Method with Conditions
Method Syntax
Example
Using the MakeReadOnly() Method
Method Syntax
Example
Using the MakeReadOnly() Method with Conditions
Method Syntax
Example
Setting Collection Visibility
Using the SetVisibility() Method
Method Syntax
Example
Changing a Collection Connection String
Using the SetConnectionString() Method
Method Syntax
Example
Last updated
Was this helpful?