i'd like to integrate an iFrame on one of our landingpages. For that i'd like to build a custom module in the design manager. Although i'm not a developer nor can i write in html code.
With some help i created this:
It seems to work just fine. When i plant it in my landingpage i can insert an url as i want BUT the url doesn't work.
I've read something about not all urls are eligible to use in an iFrame, but it's necessary for our project. How can i make this work?
Hi @TLeue to test whether your iframe will work, you can add the Rich Text common module to your page and choose Insert, then Embed and paste your iFrame code there.
You may not see a preview of the iFrame in the editor, but if it works, you will see it on the preview page when you open it in a new tab.
This is also much easier than creating a custom module and can be formatted using the Section and Column alignment settings to work with your layout.
If my reply answered your question please mark it as a solution to make it easier for others to find.
I already tried it with a Rich Text Module. It worked on desktop but not on mobile versions. That's why i wanted to integrate the java script, because it makes the whole thing more responsive.
What I mean by separating the javascript is to add it to the page head HTML instead of via the rich text editor.
Here's a video of how I have it configured using the rich text module.
I didn't check in the video, but I did check mobile view afterward and it seemed to work as expected - let me know if that's not the case, this could have more to do with how the theme is coded than how the iframe is embedded.
If my reply answered your question please mark it as a solution to make it easier for others to find.
thanks for the video. Unfortunately it doesn't work as i hoped it would.
I've copied the code you've embedded. If i integrate it exactly like that, the desktop version is totally wrong. I have to make it bigger, but when i do that the mobile version gets messed up, because it's not responsive.
Whats wrong with the code i've sent you in my response above? Why can't i just integrate it exactly like that?