top of page

Forum Posts

Bread Fish
Feb 02, 2022
In Coding with Velo
Hi, I have a problem with wixLocation() function. I've got an error that 'cannot find name wixLocation. But it shouldn't be a name but a function, should it be? My code and a picture: export function overimage_click(event) { console.log(event.context.itemId); if (event.context.itemId === "abc-xyz-qrs...") { wixLocation.to("/xyz") } } Any help will be appreciated. Thanks.
wixLocation() error message content media
0
2
109
Bread Fish
Jan 30, 2022
In Coding with Velo
Hi, Do I need to sort every filtered query along the line or filter all the queries first and do the sorting at the last query? Thanks for any help! For example: wixData.query("myCollection").contains("price",$w("#dropdownprice").value)) .ascending("price") .and(wixData.query("myCollection").contains("piece",$w("#dropdownpiece").value)) .ascending("piece") .and(wixData.query("myCollection").contains("color",$w("#dropdowncolor").value)) .ascending("color") .find() .then( (results) => { ...and so on... or wixData.query("myCollection").contains("price",$w("#dropdownprice").value)) .and(wixData.query("myCollection").contains("piece",$w("#dropdownpiece").value)) .and(wixData.query("myCollection").contains("color",$w("#dropdowncolor").value)) .ascending("price", "piece", "color") .find() .then( (results) => { ...and so on... or it does not matter. Thank you.
0
4
50

Bread Fish

More actions
bottom of page