Forums | Mahara Community
16.04 embed Google Apps
09 July 2016, 1:14 AM
I try to embed a public google calendar without success
I followed the documentation page : http://manual.mahara.org/en/16.04/blocks/external.html#google-apps
Does the Embed Google Apps block(with G.Agenda) works on your mahara ?
10 July 2016, 3:09 AM
Same error for me. I tried to set various allowed iframe sources found here but no luck. https://wiki.mahara.org/wiki/Allowed_iframe_sources
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: https://bugs.launchpad.net/mahara/+bug/1600665
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 "calendar.google.com/calendar/embed" to your allowed iframe sources list, you can instead embed the calendar as an "External Media" block, or embed it via TinyMCE.
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: https://bugs.launchpad.net/mahara/+bug/1600668
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).