Dynamic Pages Using IFrame

Hello, I want to use dynamic pages and on each individual page have a different set of code embedded using IFrame. However, when I embed code on a single page in dynamic pages, that same IFrame shows up on all of the other pages. Is there anyway to have an IFrame show up on just one individual page in dynamic pages? For example, I want an IFrame on the individual page covering Adoption services, and then a separate IFrame on the individual page covering basic services.

Vlad, it is very much possible. What you have to do is store the html-code per dynamic page in the db. Then, for each Dynamic Page, read the code from the db en postMessage it to the html-component. Maybe my example on sending stuff to a Wix html-component will help: https://girizano.wixsite.com/codecorner/home/html-component-not-running-in-publish-mode-google-sheets-example

Hi Giri,

could you please detail a little bit more your answer when you say: " read the code from the db en postMessage it to the html-component"?

It looks like I am having the same issue as Vlad, trying to pass a message to the HTML component that looks something like this:

but I really do not undersand how. It is a simple widget to display on a dynamic page.
Any hint would be of great help. Thanks a lot! )

Hi @giri-zano ,
I have a website and I want to create a dynamic page with different codes in the Iframe. But when I’m following the regular method of creating dynamic pages all the item pages displays the same code on all the pages. I went through the articles, but since I’m a newbie I couldn’t understand them quiet well. The purpose to use the IFrame is integrate additional services on my wix website. Kindly help to resolve this.