Forums | Mahara Community

Support /
16.04 embed Google Apps

Emilie Lenel's profile picture
Posts: 112

09 July 2016, 1:14 AM


I try to embed a public google calendar without success

I followed the documentation page :

Does the Embed Google Apps block(with G.Agenda)  works on your mahara ?




Dirk Meyer's profile picture
Posts: 424

10 July 2016, 3:09 AM

Hello Emily,

Same error for me. I tried to set various allowed iframe sources found here but no luck.

Aaron Wells's profile picture
Posts: 896

11 July 2016, 2:58 PM

I had the same problem when I tried to do it. My guess is that Google has changed their embed URLs again, because we've had this same problem in the past when they've done that.

I've posted a bug about it on Launchpad:

The Google Apps block actually doesn't use the Allowed iframe sources list at all. Instead, it relies on a hard-coded list of patterns for Google URLs and embed codes. So, that's why adding the domain to the allowed iframe sources list doesn't fix this problem. (Although, maybe it would be a good idea to somehow wire the allowed iframe sources list into the Google Apps block for this kind of situation?)

As a temporary workaround, if you add "" to your allowed iframe sources list, you can instead embed the calendar as an "External Media" block, or embed it via TinyMCE.



Aaron Wells's profile picture
Posts: 896

11 July 2016, 4:08 PM

I went through the list of Google media types in the manual, and tested embedding each one. They all worked except for Calendar and Google Drive folders, which I believe the manual refers to by the older name of Google Collections. (Google Plus now has a feature called "Collections" and I thought at first the manual was referring to that, but on looking at the code it became clear it was Google Docs/Drive folders that it was referring to).

So, I've filed a bug for updating our support for embedded Google Drive folders as well:



Aaron Wells's profile picture
Posts: 896

13 July 2016, 11:09 AM

We included a fix for this issue in the latest round of Mahara releases (16.04.2, 15.10.4, 15.04.8).



5 results