Xibo module and getResource method

I’m playing around with creating a xibo module. I have been able to get a custom module installed but I’m not sure if I’m understanding how the getResource method works. I am embedding an iframe using an edited getResource from the website module. I see a preview/thumbnail of the region in the layout designer, but when I preview the layout I don’t see the region. I see that the iframe isn’t included in the preview html. Does the preview get its html from another method?

I believe the preview uses an iframe as well so perhaps something goes wrong with nested iframes?

So I went ahead and changed some stuff to match the embedded module. I posted the code here.
http://collabedit.com/72nw3

I don’t think it’s about the nested iframe because I put the same iframe in embedded module and it worked in both places. Any other advice?

I suspect your issue is that you’re viewing the CMS over HTTP and your iframe src is HTTPS. Depending on what you’re embedding in there, you might be able to make the src of the iframe be //address.example.com to indicate that it should inherit the parents http(s) values.