I’m not sure if this functionality already exists, but it would be great to have simple data transformation options in the expression editor. This would make it easier to work with existing backends.
For example, with the new global variables feature, I’m using GraphQL to fetch site settings from Headless WordPress. However, the language/locale is returned as en_AU, whereas Webstudio expects en-AU.
I tried using the following expression to transform the format: siteSettings.data.data.allSettings.generalSettingsLanguage.replace('_', '-')
Would it be possible to support transformations like this directly within the expression editor?
I've just had the whole site I was just working on for the past couple of days disappear (even within the editor, all elements are gone) – when I try to view the deployed link , it says that the worker isn't found.
Hey there, long time lurker – first time poster. I’m really enjoying the new CSS Variables feature—it's a huge boost in workflow efficiency. I typically use the same variables (like --color-dark, --color-light, and --color-brand) across all my projects and tend to reuse base layouts, so it would be incredibly helpful to have an option to import CSS variables directly from existing CSS code. Since I already have these saved and plan to reuse layouts I’ve created, this feature would make starting off new projects much faster by eliminating the need to re-enter them each time.
I've been having some trouble with XML Sitemaps connected to a CMS in WordPress. Google Search Console is showing the error: "An invalid date was found. Please fix the date or formatting before resubmitting."
I'm not sure if the issue is with the date Webstudio provides for static pages or the GMT time WordPress outputs via their REST API. As far as I know, both formats should be compatible with GSC, so I'm a bit confused as to why this error is popping up.
Has anyone come across this issue before or have any insights into what might be causing it?