To embed Google Drive videos into a Webflow CMS Collection, you'll need to create a dynamic embed that accepts unique Google Drive share URLs for each product. Follow these steps:
https://drive.google.com/file/d/FILE_ID/view?usp=sharing
./d/
and /view
.1xAYZmgjTf5Xn3A2dUTsbp8_DCpaLpVrE
).Use this structure:
https://drive.google.com/file/d/{{wf {"path":"drive-video-id","type":"PlainText"\} }} /preview
So the full iframe code looks like:
<iframe src="https://drive.google.com/file/d/{{wf {"path":"drive-video-id","type":"PlainText"\} }}/preview" width="640" height="480" allow="autoplay" allowfullscreen loading="lazy"></iframe>
{{wf ... }}
with each product's unique Drive file ID.To embed Google Drive videos dynamically in a Webflow CMS Collection, extract the File ID from each shared URL, store it in a CMS field, and use it in an Embed element with the correct Google Drive preview URL. This method ensures each product displays its unique video.