Set Pro Gallery link text via Wix Code

Hi Wix Code community,

On my website I have several Pro Galleries, filled by a data query using Wix Code.
Filling the gallery works perfectly fine and so does setting the link for each item.

However, after setting a link via Wix Code, the link text of each single item reads “Go to undefined Page”. The same happens when you connect a dataset containing links to the Pro Gallery. Clicking the link works fine, but as you can imagine I do not want to show these unattractive links to my visitors.

Manually filling a Pro Gallery you have the ability to modify the link text. Using Wix Code instead I simply cannot figure out how to set the link text. Since you are able to provide literally all other properties it doesn’t make sense to me that you wouldn’t be able to set the link text.

I must miss something here. How can I set the link text of Pro Gallery items using Wix Code?

Many thanks for your help!
Michiel

Hi Michiel!

Can you please share a link to your site? (if the site isn’t published - editor link is good as well)
One of us, the Wix Code team, will inspect your site and provide you with a solution as soon as possible.

Doron.

Hi Doron,

Thanks for your reply! Because I need to finish the site I am currently developing on short term I used repeaters with cached data as a temporary workaround (despite the cache still way slower than a gallery).

To reproduce the issue I was facing with the gallery links, I created the hidden page “Gallery link issue”. Hereby my editor link to access this page: https://editor.wix.com/html/editor/web/renderer/edit/df344a7f-a424-47ba-8f47-444a0f5ab641?metaSiteId=588c30f6-f8ec-4579-8518-a04fef0bfb68&editorSessionId=7d88ac60-ba48-4a32-a074-ea42f6f64f30&referralInfo=dashboard.

Some additional info on the link issue:

  1. Setting a link for gallery items via Wix Code works
  2. The link text can however not be supplied via Wix Code, resulting into the label “Go to page Undefined” for each gallery item
  3. When adding images to the gallery via the editor, you are able to set both a link and provide link text as expected
  4. Due to this behavior setting gallery links via Wix Code becomes unusable as you have no control over what your visitors will see as link text.

Many thanks in advance for looking into this issue. Let me know if you need any additional info =).

Cheers,
Michiel

Hi Michiel!

I was able to recreate the issue you’re describing regarding the code part.
It seems to work for me perfectly while using dataset.

I have passed it down to QA and will report to this thread as soon as we have an update.
Sorry for the inconvenience!

Doron.

Hi Doron,

Thanks for passing it down to QA and keeping me up to date in this post! Good to hear that you were able to recreate the issue with code.

In the meantime the repeaters will do the job, although being able to use the Pro Galleries again would be a very welcome speed boost :).

Cheers Michiel