Components Overview

CMS Filter has 7 components that work together like magic. Insert via plugin or copy from dashboard, connect to your CMS collection, and they sync automatically.

All components automatically connect when they reference the same CMS collection. No technical setup required - they just work together!

Core Components

How Components Connect

All components automatically share data through a centralized store. The store is automatically created based on the collection name or a custom store key.

🔑 Store Key Property

storeKey: 'auto' - Automatically uses your CMS collection name (easiest)

storeKey: 'custom-name' - Use a custom name for multiple filter groups

Diagram showing components connected through shared store

All components with matching store keys automatically share state

Minimal Setup

The simplest setup requires just two components:

  1. 1. CMSCollection (Required) - Connect your CMS List to its slot
  2. 2. Any other component (Search, Filters, Sort, etc.) - Auto-connects via storeKey

That's it! They work together automatically.

Complete Setup

For a full-featured filterable collection, use all components:

📐 Typical Layout Structure

Top: CMSSearch (search bar)
Controls Bar: CMSCount, CMSSort, CMSClearAll
Active Filters: CMSFacets (filter chips)
Sidebar: CMSFilters
Main Area: CMSCollection → CMS List

Component Comparison

ComponentRequiredPurposeUse When
CMSCollection✓ YesHub & rendererAlways (required)
CMSSearchNoText searchNeed to search titles/descriptions
CMSFiltersNoAdvanced filteringNeed filtering by fields (price, category, etc.)
CMSCountNoResult countWant to show number of results
CMSClearAllNoReset filtersUsers need easy way to clear filters
CMSSortNoSort resultsNeed to sort by price, date, name, etc.
CMSFacetsNoShow active filtersWant visual feedback of applied filters

Common Patterns

🛍️ E-Commerce Store

  • ✓ CMSCollection (products)
  • ✓ CMSSearch (name, description)
  • ✓ CMSFilters (category, price, rating)
  • ✓ CMSSort (price, popularity)
  • ✓ CMSCount + CMSFacets + CMSClearAll

📝 Blog/Portfolio

  • ✓ CMSCollection (posts)
  • ✓ CMSSearch (content)
  • ✓ CMSFilters (category, tags)
  • ✓ CMSSort (date, title)
  • ✓ CMSCount

🏠 Real Estate

  • ✓ CMSCollection (properties)
  • ✓ CMSSearch (address, city)
  • ✓ CMSFilters (bedrooms, price, type)
  • ✓ CMSSort (price, size, date)
  • ✓ CMSCount + CMSFacets + CMSClearAll

Next Steps

Explore detailed documentation for each component: