Adding a sort to your repeater on the Wix website can enhance user experience and make navigating and finding specific content easier for visitors. In this blog post, we'll walk you through the process of adding a drop-down sort to your Wix site, so you can organize your content effectively and provide a seamless browsing experience for your users.
Dropdown Sort in Repeater
Prerequisite:
Before you start this tutorial, you need to create a Wix site and design a repeater
Step 1: Enable CMS (Formerly Known as Content Manager)
To be able to add sort to a repeater , all the data must be in the CMS. For that, you need to enable CMS.
From the left side of the editor, select CMS Which is selected in the image.
Step 2: Create a Collection
Step 3: Add Fields to the Collection
Step 4: Add data to the collection
Step 5: Insert Dataset to connect the repeater to CMS
Step 6: Configuring Dataset
Step 7: Connect the repeater to the Dataset
Step 8: Connect Repeater Elements
Step 9: Turn On Developer Mode
Step 10: Add Dropdown
Step 11: Add choices to the dropdown (ascending descending)
Step 12: Giving ID to elements
Step 13: Code
Step 14: Preview and Publish
Output
Comentários