Statamic Filter Builder
Build dynamic collection filters and sort orders through the Statamic control panel. Visual filter builder without custom query scopes.
Statamic Filter Builder adds visual filter and sort fields to the Statamic control panel. Editors build collection queries through a UI instead of asking developers for custom query scopes. No code changes, no deployments, no waiting.
Visual Query Building
Filter Builder Fieldtype
A visual UI that presents field-aware operators. Text fields get "contains" and "starts with," dates get "before" and "after," toggles get "is true" and "is false."
Sort Builder Fieldtype
Companion field for defining sort orders. Editors choose the field and direction without touching template code.
Dynamic Variables
Reference values from the Antlers cascade in filter conditions. Filter by "current user" or "today's date" without hardcoding values.
Auto-Scope Injection
When filter_builder is present as a parameter, the query scope is applied automatically. No manual scope registration needed.
Two modes
Config mode locks the field to a specific collection and is ideal for fixed listing components. Field mode lets editors choose both the collection and its filters at runtime, enabling reusable listing components that work with any collection.
Zero configuration
composer require cboxdk/statamic-filter-builder. No config files, no publishing, no migrations. Add the fieldtype to a blueprint and start filtering.