top of page

Forum Posts

gemma.dolby
Mar 19, 2021
In Coding with Velo
Has anyone managed to get a Wix site into the green for all the Page Speed Insight Tool measurements? If yes, how did you manage it? #speedupwixsite #wixwebsitespeed #fasterwebsite #mobilefirst
0
0
25
gemma.dolby
Mar 03, 2021
In Coding with Velo
I've been following this tutorial to limit the amount of information downloaded on my page in one go. https://support.wix.com/en/article/velo-best-practices-for-improving-performance-in-wix-sites-with-data However, I have set up the repeater to show only one result at a time. What I would like to do is link the golden arrow to the next item in the Dataset allowing the visitor to scroll through all projects in the dataset. Is this possible whilst still calling a filtered dataset from the backend? https://systemsixkitchens.editorx.io/mysite-2
0
0
31
gemma.dolby
Oct 14, 2020
In Coding with Velo
I have been struggling with the site menu for our System Six site (www.systemsixkitchens.co.uk). What happens is you click on a link in either the menu or submenu the address changes in the bar but you are not redirected to the page, I have raised this issue with Wix Support but they have said the menu is working fine. I know its not a problem unique to my computer because I have had reports from customers and internal staff with the same issue. Please could someone advise me if they have had a similar problem, and if they managed to solve it?
Site menu not working correctly content media
0
7
311
gemma.dolby
Jul 20, 2020
In Coding with Velo
I would like to add a search function to my database, I have trawled the forum and managed to get so far in that one keyword searches the title column in my database and pulls up the relevant item. However, if I add two keywords that do not appear in the column next to each other no results are shown. For example: "Brook Mussel" pulls up Brook in mussel download links. However if I use "Brook J Handle" I get no results. If someone could please point out where I have gone wrong in the code I would be very grateful! import wixData from "wix-data"; $w.onReady(() => { loadContinents(); }); let lastFilterTitle; let lastFilterContinent; let debounceTimer; export function iTitle_keyPress(event, $w) { let searchValue = $w('#iTitle').value; let searchWords = searchValue.split(' '); let query = wixData.query('#dataset1') .hasSome('title', searchWords[0]); for (let i=1; i < searchWords.length; i++) { query = query.or(wixData.query('dataset1') .hasSome('title', searchWords[i])); } if (debounceTimer) { clearTimeout(debounceTimer); debounceTimer = undefined; } debounceTimer = setTimeout(() => { filter($w('#iTitle').value, lastFilterContinent); }, 500); } export function iContinent_change(event, $w) { filter(lastFilterTitle, $w('#iContinent').value); } function filter(title, continent) { if (lastFilterTitle !== title || lastFilterContinent !== continent) { let newFilter = wixData.filter(); if (title) newFilter = newFilter.contains('title', title); if (continent) newFilter = newFilter.contains('continent', continent); $w('#dataset1').setFilter(newFilter); lastFilterTitle = title; lastFilterContinent = continent; } } function loadContinents() { wixData.query('Continents') .find() .then(res => { let options = [{"value": '', "label": 'All Ranges'}]; options.push(...res.items.map(continent => { return {"value": continent.title, "label": continent.title}; })); $w('#iContinent').options = options; }); }
Search using multiple keywords content media
0
1
73
gemma.dolby
Jul 06, 2020
In Coding with Velo
I am linking up a repeater on my page using code, but I don't know how to link to the dynamic page. I would like to add a link to the #modernSquareImage so that when the user clicks on the image they are sent to the corresponding dynamic page. Below is an example of the code I am using to fill one of the repeaters on the page. https://systemsixkitchens.editorx.io/devsite-s6k/kitchen-style/ import wixData from 'wix-data'; import {local} from 'wix-storage'; let data; $w.onReady(async function () { data = local.getItem("kitchenStyles"); if(data) { data = JSON.parse(data); } else { let results = await wixData.query("Kitchens").find(); data = results.items; local.setItem("kitchenStyles", JSON.stringify(results.items)); } } ); let modernKitchensInfo = []; $w.onReady(function () { //Query to get the information from the database wixData.query("Kitchens") .eq("kitchenStyle", "Modern") .limit(4) .find() .then((results) => { modernKitchensInfo = results.items; $w(`#modernKitchens`).data = modernKitchensInfo; }) .catch((err) => { let errorMsg = err; }); //Set the information to the repeater $w(`#modernKitchens`).onItemReady(($w, itemData) => { //add here all the relevant elements of the repeater //In this case, I've added a text and an image to the repeater $w(`#modernDoorName`).text = itemData.doorStyle; $w(`#modernDoorColour`).text = itemData.doorColour; $w(`#modernPriceIndicator`).text = itemData.priceIndicator; $w('#modernSquareImage').src = itemData.image; }); });
0
2
277

gemma.dolby

More actions
bottom of page