Dynamic Pages: Filtering and Sorting
You may display content in a widget that is filtered and sorted exactly how you like. Filtering and sorting are supported by all connected data widgets.
For a deeper look at dynamic filters, see our Dynamic Pages: Dynamic Filters doc.
For more on connecting widgets to collections, see our Connecting Widgets doc.
Add Filtering and Sorting
Open the widget option panel and click Settings (gear icon) and select Connect to data.
You may also right-click on any widget and select the same.
Note: not all widgets support Connected Data. See this doc to learn more about which widgets support Connected Data.
In the Connect Data, begin by connecting to an existing collection if the widget is not yet connected.
Click Filter & sort.
DISPLAY
Within the Filter & Sort tab, you have the ability to set various display options, including how many items you wish to show, the category you wish to sort by, as well as the order in which you wish to sort the content.
SORTING CONTENT
Content is sorted by selecting a data type, and then choosing ascending or descending sort.
Click +Add Sort.
Select a category. For example, you may choose a category for listing price for real estate listings on your site.
Choose Ascending or Descending.
ADDING A FILTER
When adding a filter you have two different filter options, fixed or dynamic.
Fixed Filters: This allows you to set the filter to show content based on a specified value in the collection. A fixed filter will show the same content across all dynamic pages that are connected to that collection. You can also add additional filters by clicking + Add Filter again, this process can be repeated as needed to display different filters within the same widget.
Dynamic Filters: A dynamic filter will enable you to display only relevant content in a collection-connected widget found on a dynamic page. To learn how to set up dynamic filters, please see our training doc, here.
NOTES
You may find when adding filters that your collection needs adjustments to best take advantage of filtering and sorting. For example, you may not have real estate homes broken down by city. You may want to make necessary corrections to your collection prior to filtering or sorting. To do this, you may need to open the collection in Airtable or Google Sheets to add a column.
If you need to make basic adjustments to your data collection in the builder, you may use the “Edit in Content Library” link in the Connect Data window.