Unable to link to a dynamic item page to display a selected Item

Every time I create a dynamic page and add a repeater, I will try to link the image to the dynamic page of the selected item.
However, I don’t receive an option to just link to the single-item dynamic page and instead, I am asked to display a certain product for the link.
My problem with this is that I don’t want to have to link every image to their selected item as that would take too much time.
How can I fix this issue?

Thanks!

Hello azeng7,

probably you will have to use code in this situation, using the dynamic URL, which will look similar to this example here…

Your dynamic URL in CODE-form would be similar to this one …

//getting the current item from the dataset
const item = $w('#dataset1').getCurrentItem();
//setting the current URL
const myURL = item["link-tutorials-title"];
//navigate to the current chosen URL
wixLocation.to(myURL)

Hi, thank you for the reply!
Unfortunately, I’m not very knowledgeable with code and corvid in general (haha). Do I insert these codes somewhere?
Thanks so much.

Yes you have to activate the “DEV-MODE” first in your Wix-Editor.
Then you will see at the very bottom of your EDITOR the CODE-SECTION.

IF the CODE-Section is not opened, you have to click onto the very bottom STRIPE, the CODE-CONSOLE will open.

There you can create your CODE.

Hi! This is what I have… is this correct?