Join the Webstudio community

Home
Members
Matthieu
M
Matthieu
Offline, last seen 3 months ago
Joined December 13, 2024
It could be really usefull to find easyly where a variable data is binded.
Hey
I was looking on resources about authentifying query in graphql?
(in a headless wordpress, I want to create a preview page, which needs authorization, but there is so many others use cases !).

I've found many informations on graphql doc.
with JTW plugin, I can get auth token to authentify graphql query. But it is not recommended to extend expiration delay with defaut 300 seconds.

So I have to get user auth token when my query is sent.
The best way seems to use wordpress session credentials, which is possible thanks to WPGraphQL CORS plugin.

Now I need to add "credentials : include" to my graphql query, but this field doesn't exist in graphql panel in webstudio.

Is there an other way to achieve this ?

I share you the script I used to achieve this but I would prefer a no-code way !!








Is it possible to add the "credentials: include" attribute in the graphql configuration?
1 comment
M
Hi ! It's there a way to get collection item index ?
data.targets.length > collection item.??
I try to hide element on collection last item.
Maybe there is an other way to do this…
Thanks for your help !
3 comments
M
O
Hello.
I just start to use dyanmic data in webstudio, awesome !
In a collection, I want to set a class with a Collection item prop.
It's all fine in the editor, but not when I publish the site.
Please find some captures in attachment. First, the editor preview, then the published version.
3 comments
M
J
Hi every one. I try to set a custom domain.
My dns provider doesn't accept double underscore characters for name in the TXT type record.
Has anyone ever encountered this problem ? How can I solve it ?
6 comments
M
O
Hi Webstudio community.
I'm looking for an post on multi-part forms but there doesn't seem to be any
(or I missed it 😵‍💫 )

In airtable, I have a list of keyword pairs. Each pair has a category field.
Using schema query, I can get an array with all my categories.
Now I want to display all my keywords pair in a webhook form group by category.
Each category is a multi-part form's step.

I've found method using script, but maybe there is a no-code way to do this !

Thanks for your help !
5 comments
M
O
J
Hey every body
Any body has already done this kind of application with graphql in webstudio ?
Depending on user permissions I want to allow editing profil, view restricted contents, etc.
in this channel I was asking if there is a way to add "credentials: include" to the query.
https://discord.com/channels/955905230107738152/1277638588309442600

Any idea ? 🙏
12 comments
M
B
D
Y
M
Hi !
My Time to first Byte is up to 2 seconds.
I've tried with both domains, normal and cutom.
Can we get better performance (600ms) with webstudio.
How can I improve this ?

Thanks for your help !
81 comments
J
M
O
B
p
Hello webstudio team.
I already read docs about using wordpress as cms and look at the templates you provided.
I still have doubts on two points :

  1. What would be the best way to deal with gutenberg blocks ?
  2. Is it possible to set a page in webstudio that can generate all future pages created in the wordpress editor ?
Thanks a lot !
5 comments
J
M
O
Hello everyone.
after many hours of experimenting, I must have missed something in the use of variables.
I don't see how to modify a variable.
If I create a number variable 'firstPosts', how do I increment this variable.
In this example, with a pagination from two to two, I would set this variable by incrementing by 2
Thanks for your help !
14 comments
J
M
B
O
Hi !
I want to extract data from a graphql variable and use it in an other block.

I have some formations with categories.
I want to get all unique categories as an array in order to use it in a collection.

I 've tried different ways but :
Binding objects in html embed doesn't seem to work (capture 2)
I don't know a to use custom script variable in expression editor (capture 3)
9 comments
J
M
Hi ! I try to set a button to disable if a checkbox is unchecked.
How can I get my checkbox status outside of my ckeckbox component ?
2 comments
M
O