To filter and display specific types of houses in a certain location using Webflow CMS, you’ll need to use CMS Collections, Collection List filters, and optionally combine them with custom filtering using Finsweet Attributes for advanced interactivity.
1. Set Up Your CMS Collection
- Go to CMS → Collections and ensure your Houses collection includes the following fields:
- House Type (Plain Text or Option field, e.g., Apartment, Villa)
- Location (Plain Text, Option field, or a Reference to a Locations collection)
- Populate each house item with the correct House Type and Location values.
2. Add a Collection List to Your Page
- Drag a Collection List element onto your page.
- Connect it to your Houses CMS Collection.
3. Apply Built-In Filters (For Static Filtering)
- Select the Collection List Wrapper.
- In the Element Settings Panel, scroll to Filter.
- Click Add Filter, then:
- Choose House Type.
- Set a condition like is equal to and type the desired type (e.g., “Apartment”).
- Add another filter for Location (e.g., is equal to “Los Angeles”).
This method is for static filtering—the filters are fixed in the Designer.
4. Use Finsweet’s CMS Filter for Dynamic Filtering (Optional)
- For real-time filtering by users on the live site, integrate Finsweet's CMS Filter:
- Add input elements (like dropdowns or buttons) for House Type and Location.
- Add
fs-cmsfilter-field="house-type"
to the House Type filter element. - Add
fs-cmsfilter-field="location"
to the Location filter element. - Give your Collection List a
fs-cmsfilter-element="list"
attribute. - Load Finsweet Attributes script on your page.
This allows users to filter houses on the frontend without page reloads.
5. Use Collection Page Templates (Optional)
- If you want to show all houses in a specific location or type, consider creating dynamic Collection Pages for each Location or House Type.
- Design the template once, and Webflow will generate a page for each item hooked to the correct filtered CMS data.
Summary
To filter and display specific types of houses in a certain location, create fields for House Type and Location, apply Collection List filters in the Designer for static targeting, or use Finsweet’s CMS Filter for user-controlled filtering on the live site.