How can I link to image?

I use list & grid, and create database.
Now the list connecting database. But the link dose not work.

Do I have to anything else?

How can I link to image? by list & grid.

Hi,
Thank you for contacting us.
There is an issue on our side.
As soon as it’s solved we will update you.

For now I can suggest you to look for a workaround.
For example you can remove current component(Repeater) and add the new one.

Thanks,
Maria

Hi,
To resolve the issue you should do the following steps.

  1. Open Image settings
  2. Choose When image is clicked - ‘A link opens’

Thank you Maria!
I try it!

Hi nanami & Maria,
Do you want to connect to an external links with each single image in your repeater ?
If yes, you can have a look with my suggestion.

//...
$w.onReady(function () { 
    $w("#repeater").data = $w("#dataset").getCurrentItem(); 
    $w("#repeater").onItemReady( ($w, itemData, index) => { 
    
       //itemData.image < image equal to field name in your Database
       $w("#image7").src = itemData.image; 
       
       //itemData.url < url equal to field name in your Database
       $w("#image7").link = itemData.url;
       
       // "_blank" = a new tab/window | "_self" = on current tab/window
       $w("#image7").target = "_blank";
    }); 
});

Special remark:
① About connecting with external link,

② No need to connect your #image7 with your dataset :blush:if you want to follow my suggestion

Full tutorial of connect repeater with different path
If you want to step by step and see my full process, you can see my post:
https://www.wix.com/code/home/forum/questions-answers/do-you-know-repeater-can-go-to-different-path

Full tutorial of repeater formatting
https://www.wix.com/code/home/forum/questions-answers/do-you-want-to-formatting-repeater

Have a good day :slight_smile:
Heson