It mostly worked, but I have 2 questions!
I see that in the console WHEN my code says:
let myVariable = $w('#gallery1').items
$w.onReady(function(){
let items = $w("#gallery1").items;
console.log("ITEMS: ", items);
let variableNumber = $w("#gallery1").items;
for(var i = 0; i < 12; i++);
let myNewDescription = "XXXXXX";
console.log("RESULT-Description: ", myNewDescription);
items[0].description = myNewDescription;
$w("#gallery1").items = items;
console.log("RESULTS: ", $w("#gallery1").items)
});
but NOT when it says:
let myVariable = $w('#gallery1').items
$w.onReady(function(){
let items = $w("#gallery1").items;
console.log("ITEMS: ", items);
let variableNumber = $w("#gallery1").items;
for(var i = 0; i < variableNumber.length; i++);
let myNewDescription = "XXXXXX";
console.log("RESULT-Description: ", myNewDescription);
items[i].description = myNewDescription;
$w("#gallery1").items = items;
console.log("RESULTS: ", $w("#gallery1").items)
});
but also, and more importantly, is there a way to have it also appear on the front end of the website when i look at the gallery?