Global Filters

Configuring a global filter in Konstrukt, the back office UI builder for Umbraco.

Sometimes you may only want to work with a sub-set of data within a given collection so this is where the global filters comes in handy. These allow you to define a filter to apply to all queries for a given collection.

Applying a global filter

Applying a global filter is controlled via the collections configuration.

SetFilter(Lambda whereClauseExression) : KonstruktCollectionConfigBuilder<TEntityType>

Sets the filter where clause expression. Expression must be a boolean expression.

// Example
collectionConfig.SetFilter(p => p.Current);

Last updated