Blocks allows you to connect a CMS database collection to a repeater. Note that Blocks collections are placeholders that allow you to interact with similar structured collections on your site later.
To connect a repeater to a collection:
Create or open a Blocks widget through the Widgets and Design menu.
Add a repeater to your widget: go to the Add panel and click LAYOUT > REPEATERS.
Create a collection in Blocks.
Go to the code section of the widget and import the wix-data module:
Query the data in the collection with this syntax (learn more about your app namespace):
@<yourAppNamespace>/<yourCollecitonName>
For example, the following function gets strings from a collection named "Titles" and assign them to the text elements in a repeater:
Find the repeater ID
An element's ID is displayed in several places: