Streaming live at 10am (PST)

Connecting to CMS from HTML JS


#1

Hey guys,

So I am using Mapbox with a list that I want to hook up to my CMS. I have attached a link to a working codepen where I put the JS script in the HTML under the "listings" div and it works fine in the pen. My problem is that I can't figure out the proper structure of my embeds with the dynamic list to make each "listing" (my JS content under "var stores") display like the codepen.

Thanks for the help!

Currents structure in Webflow:

RESULTS:
(Text from the script tag shows up but the field content from the CMS content doesn't.)

HTML/CSS (outside of dynamic list):

JS (inside of dynamic list):

https://preview.webflow.com/preview/kyle-s-amazing-site-wohoo?preview=1049efc55c0c6d3ebdbf263e1920a3d4