How to add filters in Custom Collections
Filters can help you select Custom Collection items you want to showcase on your website. If you have a custom collection already and would like to be more specific about the items you want to showcase, that is where filters come in handy. This article will cover how filters work and how you can use filters on custom collection items on a CMS Row.
How to create Custom Collection
You will need to have a custom collection on your website. To learn how to create custom collections, refer to the documentation below:
Add a new Collection
How to add Fields to Custom Collections
Before using filters, you should have fields with values on your custom collections.
Refer to the documentation below to learn how to create fields in custom collections:
Add and customize fields in a Collection
How to add Filters to Custom Collection Items
Follow the steps below to see how filters work for Custom Collection Items.
Add a CMS Row to any section
Connect the Database to Custom Collection as the Data Source
Select any collection
Add any element and populate it with CMS fields.
After populating the elements with CMS Field Data, click on ‘**Edit CMS Row**’ and start using filters.
You can use fifteen filters for Custom Collection fields, which can be applied to ten different data types.
- Does Not Equal
- Is Between
- Is Less than
- Is Less than or Equal
- Is Greater than
- Is Greater than or Equal to
- Does Not Contain
- Is Set
- Is Not Set
- Is Before
- Is Before or Equal To
- Is After
- Is After or Equal To
Data Types in Custom Collection Fields:
- Rich Text
- Single Select
- Single Reference
Filters for every Data Type:
Here are the filters that you can use for each Data Type:
Updated on: 31/10/2023