I have a Collection with a Media Gallery field with several photos in each.
I have a Page for each row in the Collection.
I want to put an Image on the page, that shows a single image from the Media Gallery field. I don’t want a Gallery (Slider or Grid, etc), I need it to be a single Image and I need to be able to select which photo from the Medial Gallery that it is connected to.
I expect to need to use corvid but I am still learning. Something to effect of:
let item = $w( ‘#dynamicDataset’ ).getCurrentItem();
$w( ‘#image1’ ).src = item[ ‘photosField’ ][ 0 ].src;
Where the [0] would be selecting the first photo from the field.
Thanks in advance!