top of page

Forum Posts

jeffpim
May 06, 2022
In Site & Page Design
I have an issue where all my Wix sites don't show the main page, but only the subpage full URLs are shown in the browser. For example: I have the following main pages: Home; Models; Contact. I also have 4 model subpages names Ash; Birch; Maple; Spruce. But below is what shows for each in the browser URL. I am missing a setting that's causing this missing main/subpage shortened URL issue? Home: https://www.mysite.com (OK) Models: https://www.mysite.com/models (OK) *Models (subpages): (SHORTENED) https://www.mysite.com/ash https://www.mysite.com/birch https://www.mysite.com/maple https://www.mysite.com/spruce *I would like it to show as: https://www.mysite.com/models/ash Contact: (OK) https://www.mysite.com/contact
1
1
50
jeffpim
Sep 20, 2021
In Coding with Velo
Hello, I am looking to redirect any record using it's unqiue Wix ID to a URL saved in the (URL) field called 'URL' example: https://www.abc.com/redirect/127c37f1-d5e9-4b0d-b27f-750dbf77aa55 would redirect to: https://www.xyz.com/12345 I have gotten the basic static code below to work: import wixLocation from 'wix-location'; $w.onReady(function () { wixLocation.to("https://www.xyz.com"); }) So dynamic code would need to be something like: import wixLocation from 'wix-location'; $w.onReady(function () { wixLocation.to('URL'); })
0
10
78
jeffpim
Nov 17, 2020
In Coding with Velo
Hello, I found the below code that works great. But, I 'm looking to add a second MouseIn effect on the same buttons that will change a text element at the same time as the image change. Basically the text element will show the color name (red, white, blue) of each image that is displayed by each button. Would it be separate block of code or can it be incorporated into the below code? $w.onReady(() => { $w("#button1, #button2, #button3").onMouseIn(event => { let src; switch(event.target.id){ case "button1": src = "https://static.wixstatic.com/media/image1.png";//use the image source break; case "button2": src = "https://static.wixstatic.com/media/image2.png";//use the image source break; case "button3": src = "https://static.wixstatic.com/media/image3.png";//use the image source break; } $w("#image1").src = src; }) })
0
2
41
jeffpim
Jun 29, 2020
In Coding with Velo
Hello, I've tried several versions of the below code and can't the text block to link to a URL stored in a URL field called "dealer_website"? I have the text block successfully displaying just domain.com and want the click/link to go to https://www.domain.com/ import wixData from "wix-data" import wixLocation from "wix-location" export function website_click(event) { wixLocation.to("dealer_website"); }
Simple text block link to URL in a collection content media
0
7
91
jeffpim
May 25, 2020
In Coding with Velo
Hello, I have a digital magazine (converted from PDF) using an online publishing service which shows items that a reader can click a URL ( example: https://www.website.com/4aad66c8-1807-42ae-b479-12a9796eee7x ) using the primary ID of the item in my collection. I am only getting the primary Photo1 to display in my #gallery1 . But, my collection has 8 image fields: Photo1; Photo2; Photo3; Photo4; Photo5; Photo6; Photo7; Photo8 Below is code that is currently working on a Lightbox page, but I can't modify to work on another Dynamic Page I have created. The field name for my primary ID is "ID". import wixWindow from 'wix-window'; import wixData from 'wix-data'; // ... $w.onReady(function () { let receivedData = wixWindow.lightbox.getContext(); let listingId = receivedData.listingId; $w('#dataset1').onReady(() => { $w("#dataset1").setFilter(wixData.filter() .eq("_id", listingId) ) .then(() => { let item = $w('#dataset1').getCurrentItem(); let itemsForGallery = []; for (let i = 1; i < 9; i++) { if (item[`photo${i}`]) { itemsForGallery.push({ src: item[`photo${i}`] }); } } $w("#gallery1").items = itemsForGallery; $w("#group1").show(); }); }) });
0
3
54
jeffpim
May 09, 2020
In Coding with Velo
I am looking to insert a single straight quote mark (ascii &#39;) instead of a single curly quote mark. The code currently shows a straight mark, but appears as a curly quote mark in my collection. It's the mark after ${$w("#input2").value} let toInsert = { "title": `${$w("#input2").value}' ${$w("#dropdown3").value} ${$w("#input1").value} ${$w("#dropdown2").value}`,
0
0
234
jeffpim
Mar 15, 2020
In Coding with Velo
I have a repeater that will not reduce in size vertically and there are no elements between the objects above and the repeater handle on the bottom. Every time I pull the repeater handle up, it snaps right back to the position shown. Any ideas on how to remove the space?
Repeater not resizing vertically content media
1
2
1k
jeffpim
Jan 14, 2019
In Coding with Velo
Is there any way to use a single dropdown menu to filter a range of numbers instead of two dropdowns using a min and max?
Single dropdown filter using a range content media
0
2
377

jeffpim

More actions
bottom of page