Join the Webstudio community

a
amozz
Offline, last seen 2 weeks ago
Joined December 13, 2024
I have a url https://shieldcoat.wstd.io/university/shieldcoat-quick-dry-roof-coating-how-long-between-coats?v=oJFYhoSwskg

I have a collection that is supposed to pull data from a cloudflare worker I have that strips the v=oJFYhoSwskg to get captions from the id on youtube then return the captions as json so I can add it to my page.

When I use shieldcoat-quick-dry-roof-coating-how-long-between-coats?v=oJFYhoSwskg on the dyanmic slug inside of webstudio it works but when I publish it doesnt work and I get an error on my worker

message:

"Invalid video ID format",
$workers:

{
event:

{
request:

{
url:

"https://youtube-captions.adrian-b0e.workers.dev/does-shieldcoat-thermabond-really-reduce-heat-scientific-proof-of-25-30-energy-savings",
method:

"POST",
path:

"/does-shieldcoat-thermabond-really-reduce-heat-scientific-proof-of-25-30-energy-savings"
}
},

this implies that even though my webpage has the url param webstudio doesnt have that path and it is stripping the url param. Is this correct?

Ideally I want this to be pull server side so that it assists with SEO, I know I can correct this with a client side script.
2 comments
a
O
Hey All, I have a radix select that is pulling options in from my shopify product via the graphql. I have added a collection into the select to dynamically add the options to the select field and have selected the default selectValue data variable to the placeholder and text content in order to change the value on the selction. The only issue is that I would like to have the first option in the select automatically selected when the page loads. Can any one help me figure out how to do this?

Looking in the radix docs I notice it has a defaultValue but I'm not sure how we implement this in webstudio
14 comments
J
L
O
a
Hey I've noticed that when I have optimized images slider turned on the images take forever to load in but when I turn it off they load in immediately, any thoughts on this?
2 comments
O
B
I'm wanting to write a script that would access data pulled from a graphql data source in the data variable. Is there a way to access this data through the DOM?
12 comments
a
j
J
O
Hey there I have pulled in a set of collections from my shopify store using the storefront api's. In the result I have a metafield data that is either true or false. I only want to display the ones that are set to true in my collection. How can I achieve this?
6 comments
a
B
Hey There,

I'm getting this error when trying to setup my custom domain to launch my site
custom hostname does not CNAME to this zone.

I have a domain hosted with godaddy in Austraila.

Domain is kilrstudios.co

Please help
1 comment
J
I've installed a custom font and it displays find in the editor but when I publish it to the testing server to view it doesn't show. Can anyone assist?
3 comments
J
a
Hey there I have pulled in a set of collections from my shopify store using the storefront api's. In the result I have a metafield data that is either true or false. I only want to display the ones that are set to true in my collection. How can I achieve this?
7 comments
O
a
J