Editing an iframe via the CMS editor

The idea is to allow an editor to change the iframe in a blog post (they will be posting a new podcast each week with a different soundcloud iframe).

I tried:

  • Adding the iframe in the Dynamic Collections. I put the code into a plain text field in Dynamic List, and then pulled the plain text code into an embed widget. The error: double quotes were wrapped around the iframe text, therefor turning it into a string. If I remove the quotes using the developer window, the iframe works.

  • Duplicating the embed widget (outside of the Dynamic list) and trying to use custom code to change the src for the podcast. See console errors below. Note: My embed widget’s ID is #podcast1.

Again the idea is to allow another editor to change the podcast each week without going into the design editor.

Any help would be appreciated. Live site here: Lucas Arie Euser I have two podcast from sound cloud showing. I need to be able to dynamically change the podcast. I am happy to do this with code, but I can’t seem to change the src URL attribute.

If I’m understanding your goal correctly, this should help: SoundCloud Integration | Webflow University

Thank you @jmw that was exactly what I needed!

1 Like

I thought so :slight_smile: Glad I could help!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.