Hi guys i have managed to create galleries with items all from the same rows but now want to add to a repeater and getting stuck.
Ive tried the below but obviously not right…
import wixData from ‘wix-data’;
$w.onReady(function () {
wixData.query(“Properties”).contains(‘location’, ‘Queensland’)
.find().then(result => {
const rowInDatabase = result.items[0];
const imagesToShow = [];
for (let key in rowInDatabase) {
if (key.includes(“image”)) {
imagesToShow.push({
src: rowInDatabase[key]
});
}
}
$w(‘#repeater1’).forEachItem(($w, itemData, index) => {
let image1 = imagesToShow[index].src;
let image2 = imagesToShow[index].src;