Log in
Log into community
Join the Webstudio community
New post
View all posts
Related posts
Was this helpful?
😞
😐
😃
Powered by
Hall
Active
Updated 2 weeks ago
0
Follow
Global variables
Global variables
Active
0
Follow
D
Divisor
2 weeks ago
·
Good afternoon, where to add Data Variables to make them available on
all
pages?
I tried to add them to “slots”, but then they are only available locally in the slot.
D
B
O
17 comments
Share
Open in Discord
D
Divisor
2 weeks ago
I'll tell you right away what I need them for: for authorization by API (GraphQl), for database query variables, etc....
B
Bogdan
2 weeks ago
I'm working on global variables right now 😉
B
Bogdan
2 weeks ago
Stay tuned
O
Oleg Isonen
2 weeks ago
current workaround is to copy those variables in the pages or slots where they are needed, but this is a terrible workaround
O
Oleg Isonen
edited 2 weeks ago
here the issue to follow
https://github.com/orgs/webstudio-is/projects/11/views/1?pane=issue&itemId=81261933&issue=webstudio-is%7Cwebstudio%7C4166
D
Divisor
2 weeks ago
By the way, copying also does not work, or rather it is impossible to insert data in the format in which the variable is copied.
O
Oleg Isonen
2 weeks ago
you mean when you copy an instance with data variables, data variables don't get copied over?
D
Divisor
2 weeks ago
In any case, copying is not the way to go since there could be hundreds of pages 🙂
O
Oleg Isonen
2 weeks ago
I meant copy instance, not page
D
Divisor
edited 2 weeks ago
You can copy it, but you can't paste it somewhere. ))
B
Bogdan
2 weeks ago
You can paste it into "URL" field
B
Bogdan
2 weeks ago
The format is called cURL
D
Divisor
2 weeks ago
Yeah, got it, thanks. Except it's not a solution if there are more than 2 pages.😅
B
Bogdan
2 weeks ago
Will be fixed soon
D
Divisor
2 weeks ago
If possible, make global variables global at all, so that they are available for both pages and slots. Thanks!
B
Bogdan
2 weeks ago
This is the idea
D
Divisor
2 weeks ago
I am very much looking forward to this update. As it turned out, when layout a multi-lingual site - just a necessary chip.
Add a reply
Sign up and join the conversation on Discord
Join on Discord