Join the Webstudio community

Updated 2 months ago

Dynamic class name

At a glance

A community member is using dynamic data in Webstudio and is having an issue with setting a class using a Collection item prop. The issue only occurs when the site is published, not in the editor preview. Another community member acknowledges the issue and states that they have created a high priority issue on the Webstudio GitHub repository, indicating that a fix and release should be coming soon. A third community member expresses gratitude for the resources shared by someone named John on YouTube.

Useful resources
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.
Attachments
Capture_decran_2024-07-05_a_15.37.02.png
Capture_decran_2024-07-05_a_15.37.02_2.png
M
J
3 comments
the published version. Thanks a lot !
Attachments
Capture_decran_2024-07-05_a_15.37.51_2.png
Capture_decran_2024-07-05_a_15.37.51.png
Hey thanks for reporting this. This is indeed an issue with classes + variables. I created an issue with the highest prio so a fix and release should be soon https://github.com/webstudio-is/webstudio/issues/3683
Hi John and thanks for all ressources you 've shared on youtube
Add a reply
Sign up and join the conversation on Discord