Join the Webstudio community

Updated last month

Building Interactive Components from the CMS

At a glance
Yes, my goal is having interactive components that come from the CMS via html πŸ‘ . For example I want to build articles that not only have image and text, but also could have a simple calculator to complement the content, with each cms page having a different calculator.
1
J
B
F
9 comments
On a smaller level than a calculator, we have this planned which will enabling styling classes that are within the cms rich text https://github.com/webstudio-is/webstudio/issues/3265
Is this calculator need to be build inside cms or it can just define a place for calculator?
If a list of blocks is returned from cms you can render it in webstudio with collection and show prop. When block is "calculator" render html embed with calculator script.
Yes that could work πŸ‘ . Do you know a specific CMS that return this type of data that works well with Webstudio?
I think most cms supports this
Ok. I'll explore alternatives. Thanks!
be aware though that your calculator would be client rendered
your html from cms just needs to contain some placeholder container and potentially attributes if you need to configure it from the cms, its basically all client-side scripting otherwise
I understand. I'll do some experiments. Thanks for all the responds!
Add a reply
Sign up and join the conversation on Discord