Global Filters
Learn how to configure a global filter in Umbraco UI Builder.
Use global filters to work with a specific subset of data within a collection. These filters apply to all queries for a given collection.
Applying a Global Filter
Configure global filters in the Collections settings.
Using the SetFilter() Method
SetFilter() MethodDefines a filter using a where clause expression. The expression must return a boolean value.
Method Syntax
SetFilter(Lambda whereClauseExpression) : CollectionConfigBuilder<TEntityType>Example
collectionConfig.SetFilter(p => p.Current);Last updated
Was this helpful?