Join the Webstudio community

Updated last month

How do I dynamically pull CMS data into my code embed?

At a glance

The community member is trying to dynamically pull data from a CMS (Airtable) into a constant called 'nextClassDate'. The community members suggest using a binding that generates a JavaScript variable or the schema syntax in Webstudio as possible solutions. One community member also mentions using RDFa to handle JSON-LD for articles and blogs with multiple authors in Webflow. However, there is no explicitly marked answer in the comments.

Useful resources
I'm trying to get the 'nextClassDate' const to pull data dynamically from my cms but I can't figure it out. This is the data I want pulled in: Airtable$32$Data.data.records[0].fields["Next Class Date"]. Is this possible? Can anyone help with this? Thank you!
Attachment
image.png
O
J
K
5 comments
there is also another one using a binding that generates a js variable
This is great. One of the issues we run into in Webflow is handling JSON-LD for articles and blogs with multiple authors. Is there a way to bind that in Webstudio for items with a (in Webflow terms) multi-reference database element?
I would use RDFa in this case https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data#supported-formats

THis way you can use collections to loop over each author and display them and also add attributes to them for Google
Add a reply
Sign up and join the conversation on Discord