Join the Webstudio community

Updated 2 months ago

Variables sitewide instead of only on page

At a glance

The community members discuss the inability to create a variable that is present on all pages, which would be useful for displaying a search bar in the navigation. The main limitations mentioned are that you cannot access system variables from a slot, and this is a blocker for multilingual sites. The community members express the need to work on a solution for this issue and hope to figure it out soon.

Useful resources
Can you create a variable that is present on all pages?
Like when you want to display a search bar in your nav.
Whis would need a variable, right?
O
4 comments
currently you can't, its a limitation we need to work on, what you can do is to build the thing you need inside slot and reuse it as is
the biggest limitation there right now is that you can't access system variables from a slot
this is for example a big blocker for multilingual sites right now https://github.com/webstudio-is/webstudio/issues/4166
hopefully we can figure out a solution soon
Add a reply
Sign up and join the conversation on Discord