Hi,
I try to load a gallery with data/photos from the database, but I get the error message “The src parameter of item at index 0 is required for items method.”
But the src parameter is on position 0 - or not?
Could anybody help me with this?
0:
Array(1)
{"src":"image://v1/246733_991cddaf189642c193fa4ca2dc4be977~mv2.jpg/1400_787/246733_991cddaf189642c193fa4ca2dc4be977~mv2.jpg","type":"image","alt":"Rhododendron vor dem Stall in Blüte.","title":"Photo téléchargé par Urs Luginbuehl"}"
Thanks for that, but it helps me not really. Actually I’ve already studied the whole reference regarding the gallery, but it didn’t help me to build correctly the array or /options?
I also searched the forum for a example code how to build the array, but I didn’t find something. By the way I don’t work with a dataset!
I’m sorry, but I did my first steps in JavaScript some days ago, so nothing is really clear to me.
I get x items with 3 fields each (photo, title, description) from the database by wixdata.query. The only question is: How can I build the correct array in order to load the gallery.
But ok, I’ll find the solution.