Smart button in repeater that chooses correct dynamic page

Product:
Wix Studio

What are you trying to achieve:
On several pages of my site, I use a repeater to showcase different publications/outputs. I have three different dynamic pages created to act as landing pages depending on what type of output is selected (publication, blog, video). My main library is separated into tabs, allowing me to link the correct dynamic page to the button.

However, the repeater on my homepage with ‘highlights’ shows the latest 5 outputs, regardless of what type they are. When linking the button of the outputs I cant seem to find a way to get it to automatically choose the correct dynamic page - I can only manually choose one of the three, however of course then not all of the buttons will work.

I see in the backend of my CMS there is a link for all three types of pages for each item, despite the actual dynamic pages filtering out any options that don’t apply.

In my head, I feel like if I can link every item every which way everywhere else, there must be a solution to get the button to link to the appropriate dynamic page. Is there a way to ‘assign’ a dynamic page type to each item?

I thought of course after publishing the item i could snag the published URL and go back and add it into an extra URL field - but this seems like a lot of extra work every time.

There is a way to do it, but that involves code.

Check out this thread:

1 Like