Dynamic Pages - Repeaters

Hi Everyone,

I know there’s been an on going discussion about repeaters on dynamic pages. I am reading these posts, but wanted to send out my question incase someone might have a solution.

I have dynamic pages from a dataset of musicians - each musician has a row assigned to their data. I have columns for images 1,2,3,4… and captions 1,2,3,4…

I would like to edit a repeater to link to the following image/ caption columns. However, it will only link to one column for one image and one caption and repeat it, of course. Anyway to edit this function with code?

OR

A way around this, I thought I could link images and text boxes to the dataset, however some musicians have more images/ captions than others (ex. some have over 30, while others have 4). Then I run into the issue of extra space between the footer. Perhaps, there’s a way to fix the space if data is not found in the dataset?

Thank you!

I’m not 100% sure what you mean, but I think I get the gist of it. You’ll need to familiarize yourself with onItemReady(). https://www.wix.com/corvid/reference/$w.Repeater.html#onItemReady

For example:

export function repeater_itemReady($item, itemData, index) {
        $item('#nextImage').onClick(() => {
            $item('#image').src = '';
            $item('#caption').text = '';
        } );
}