Hi People !!
Ok That sounds like perfect chinese mixed with some alien goa’uld to me because I am no coder but biologist.
First: let’s sketch the landscape.
On my website I have a page https://www.onstreetradio.com/concerts where users can search by typing the name of the artist they wish to go to. When they do, repeaters show boxes with name of artist, an image and a button “RESERVER” which when clicked opens a new window to the booking/buy tickets website for the shows.
Problem number 1: when I overview or preview (my wix is in French and says “aperçu”) that page in the editor I get this message in red down in the code area:
“Wix code SDK error: The link property of the item at index 0 that is passed to the menuItems method cannot be set to the value “undefined/boitedartiste/profile” as this is not a supported link type.”
But no matter this non-understandable to me, it seems to work on the published version of my web site.
The search bar and the repeaters are linked to a 3 columns database (artist (text) - image (image) - booking (url)) of around 120 lines.
Some lines have no data for the booking columns (that’s when artist doesn’t have a booking page at all yet) so the “reserver” button appears but of course nothing happens when clicked.
The code I use (I didn’t create it I found it on youtube) is as followed :
import wixData from “wix-data”;
let debounceTimer
export function iTitle_keyPress(event,$w) {
if (debounceTimer) {
clearTimeout(debounceTimer);
debounceTimer = undefined;
}
debounceTimer = setTimeout(() => {
filter($w(‘#iTitle’).value);
}, 200);
}
let lastFilterTitle;
function filter(title) {
if (lastFilterTitle !== title) {
$w(‘#dataset1’).setFilter(wixData.filter().contains(“artiste”, title));
}
}
Problem number 2: How do I get the data shown by the repeaters sorted by A->Z ? Because I did click on sort the result A->Z in the artist column in the sandbox, then synchronised the sandbox → Live but still no sorting. So I manually sorted those in “modify live data” in the dashboard. And then publish again but still: data are shown with no order. Any idea or this is a bug ?
Thanks in advance to those who’ll take time to answer.