How to display a information of a reference column from a collection with code in a repeater?

For functionality reasons, I have to use code and wixData to display it. I can’t do it in the visual editor of the page, assigning to each element of the repeater a column from the collection, it has to be coding.

Thanks in advance!!

Hi Dani :raised_hand_with_fingers_splayed:

The UI editor only connect elements to an entry in the database (row), if you want to get a specific column you can ONLY do that with code unless you filtered them out. ( only static filter ).

If you’re wondering how, you need to get all entries that has it’s " Published " boolean set to true , there are many ways to achieve this, one of them is applying a filter.

If you don’t want to use the UI dataset, you can query the collection you want and then assign the results’ items to the repeater’s data.

Ahmad