The Basics
An overview of the basics of configuring a collection in Umbraco UI Builder.
Defining a Collection
Using the AddCollection() Method
AddCollection() MethodMethod 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
AddCollection() Method with IconsMethod 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
SetAlias() MethodMethod Syntax
Example
Changing a Collection Icon Color
Using the SetIconColor() Method
SetIconColor() MethodMethod Syntax
Example
Defining an Entity Name
Using the SetNameProperty() Method
SetNameProperty() MethodMethod Syntax
Example
Using the SetNameProperty() Method with Custom Heading
SetNameProperty() Method with Custom HeadingMethod Syntax
Example
Using the SetNameFormat() Method
SetNameFormat() MethodMethod Syntax
Example
Defining a Default Sort Order
Using the SetSortProperty() Method
SetSortProperty() MethodMethod Syntax
Example
Using the SetSortProperty() Method with Sort Direction
SetSortProperty() Method with Sort DirectionMethod Syntax
Example
Defining Time Stamp Properties
Using the SetDateCreatedProperty Method
SetDateCreatedProperty MethodMethod Syntax
Example
Using the SetDateModifiedProperty Method
SetDateModifiedProperty MethodMethod Syntax
Example
Configuring Soft Deletes
Using the SetDeletedProperty() Method
SetDeletedProperty() MethodMethod Syntax
Example
Disabling Create, Update, or Delete Features
Using the DisableCreate() Method
DisableCreate() MethodMethod Syntax
Example
Using the DisableCreate() Method with Conditions
DisableCreate() Method with ConditionsMethod Syntax
Example
Using the DisableUpdate() Method
DisableUpdate() MethodMethod Syntax
Example
Using the DisableUpdate() Method with Conditions
DisableUpdate() Method with ConditionsMethod Syntax
Example
Using the DisableDelete() Method
DisableDelete() MethodMethod Syntax
Example
Using the DisableDelete() Method with Conditions
DisableDelete() Method with ConditionsMethod Syntax
Example
Using the MakeReadOnly() Method
MakeReadOnly() MethodMethod Syntax
Example
Using the MakeReadOnly() Method with Conditions
MakeReadOnly() Method with ConditionsMethod Syntax
Example
Setting Collection Visibility
Using the SetVisibility() Method
SetVisibility() MethodMethod Syntax
Example
Changing a Collection Connection String
Using the SetConnectionString() Method
SetConnectionString() MethodMethod Syntax
Example
Last updated
Was this helpful?