====== Google Calendar Plugin ====== ---- plugin ---- description: Embeds a Google Calendar into a wiki page author : Kite email : Kite@puzzlers.org type : syntax lastupdate : 2011-12-26 compatible : Binky depends : conflicts : similar : tags : google, calendar, embed downloadurl: https://github.com/lupo49/plugin-google_cal/tarball/master sourcerepo: https://github.com/lupo49/plugin-google_cal bugtracker: https://github.com/lupo49/plugin-google_cal/issues ---- This plugin integrates a [[http://www.google.com/intl/en/googlecalendar/overview.html|Google Calendar]] into a DokuWiki page. With a serious nod to [[plugin:iframe]] by [[chris@jalakai.co.uk|Christopher Smith]]. Minimal changes were made (improvements, I hope). ===== Installation ===== ^ Download | [[https://github.com/lupo49/plugin-google_cal/tarball/master|Current archive from github]] | ===== Syntax ===== {{cal>kite@puzzlers.org[614,640]|Kite's Test}} Pretty simple: * an email address with a shared/private calendar. * the [614,640] are width and height -- these are both optional, but must be enclosed in [ , ] if present. If only one value is supplied, it is assumed to be the height. * the | marks the 'alternate text' used for a title; otherwise you get the default configured in Google.    ===== Configuration ===== The plugin has one configuration setting, which can be set via the admin/configuration settings page. * $gcal_js_ok --- default value - ''false'', set to ''true'' to enable JavaScript URLs. * [[plugin:iframe]] by [[chris@jalakai.co.uk|Christopher Smith]] uses $js_ok I don't know if it is better to allow one value for both plugins, or not. Also, due to the limited nature of this plugin, I don't think this option will actually make any difference. It has not been tested. ===== Development ===== ==== Changelog ==== {{rss>https://github.com/lupo49/plugin-google_cal/commits/master.atom date}} ===== FAQ ===== ==== Specify just one calendar of Googles Calendars ==== I have several Google Calendars tied to my Gmail account. Is there a way to specify just one calendar, or a sub-group (i.e. 3 out of 5 calendars). --- //[[jungerle@gmail.com|Jason]] 2007-06-08 18:51// The quick answer is yes. At the Google calendar webpage, click on manage calendars. Then click on the particular calendar that you are interested in using. In the Calendar Address box you should see a calendar id that looks like a randomly generated bunch of letters @group.calendar.google.com. Plug this in as the address instead of %%{{cal>yourname@gmail.com}}%%. I.e. %%{{cal>[randomletters]@group.calendar.google.com}}%%. Seems to be working for me. Cheers. Ethan Farquhar 2007-08-13 ==== Have calendar appear in a different language ==== I needed to display the calendar in French. It would be nice if you could include a language variable in the future, but for now, here is how I did it: Edit the following line near the end of syntax.php $renderer->doc .= " from Google; wasn't able to make that work this time around due to some parsing and regular expression problems. * This would be **GREAT**! :-D * This should probably check the user's email but ... since it has to go to Google's calendar engine anyway, I can rely on their response to be "reasonable" for now.