Hi Ania,
sure, here it goes:
$w.onReady(function dataset1_onReady() {
let item = $w(‘#dataset1’).getCurrentItem();
$w(‘#gallery1’).items = [
{src: item.foto_1},
{src: item.foto_2},
{src: item.foto_3},
{src: item.foto_4},
{src: item.foto_5},
{src: item.foto_6},
{src: item.foto_7},
{src: item.foto_8},
{src: item.foto_9},
{src: item.foto_10},
];
});
Where:
- dataset1: is the name of your dataset;
- gallery1: is the name of your gallery
- foto_1 to foto_10: are the field names I gave to the entries in my database where I have photos. In this case my gallery is reading 10 fotos but you can change this number if you will… Also, if you have less photos, there is no problem, it will only read the one you have loaded.
I hope it helps
Best,
Aldino
PS: I also cannot code… so I do not know much more than this ![]()