Project

General

Profile

Actions

PluginGoogleCalendar » History » Revision 5

« Previous | Revision 5/15 (diff) | Next »
Mischa The Evil, 2009-06-26 01:14
Changed source of plugin after contact with Jim, updated to v.0.1.1 and many more improvements (see diff :)


Google Calendar plugin

Author

  • Jim Mulholland

Changelog

For the complete changelog see the CHANGELOG-file in the Redmine Google Calendar plugin directory.

Latest stable release

The currently available, latest stable release of the plugin is version 0.1.1.

Description

The Google Calendar plugin is a simple Redmine plugin which provides the project-manager a way to include a Google Calendar iframe as a tab within Redmine projects. The calendar timezone will be user-dependent based off the timezone in your Redmine user account and defaulted to the timezone set in the <iframe> if the user does not have a timezone selected.

Currently, the only way to install is using Git and GitHub:

URL: http://github.com/MischaTheEvil/redmine_google_calendar/tree/master

Compatibility

This plugin is compatible with Redmine 0.8.x as well as with current Redmine trunk.

Latest release

  • 0.1.1

Prerequisites

The plugin requires the tzinfo gem to be available. If it does not already exist on your server, you can install it using a command like:

$ sudo gem install tzinfo

Installation

General Redmine plugin installation information can be found here.

The installation of this plugin can be done using two different methods:
  • using git clone (Git version < 1.5.3)
    $ cd {RAILS_ROOT}/vendor/plugins
    $ git clone git://github.com/MischaTheEvil/redmine_google_calendar.git
    
  • using git-rails (Git version >= 1.5.3 -- Because the git-rails gem uses Git Submodules which were introduced in v. 1.5.3)
    $ sudo gem install git-rails
    $ git-rails install git://github.com/MischaTheEvil/redmine_google_calendar.git
    

The plugin does not require a database migration afterwards. It does require a restart of Redmine after the installation before the plugin is detected by Redmine and useable.

Global setup

Before you can actually use the plugin within the preferred projects some setup has to be done first.

  1. Go to "Administration -> Custom fields" and create a Project custom field of the type "long text", named 'Google Calendar IFrame' for example.
  2. Go to "Administration -> Plugins -> Google Calendar Plugin > Configure" to configure the Google Calendar plugin:
    • select the project custom field which contains the Google Calendar-iframe; in this example select the newly created project custom field "Google Calendar IFrame"

Project level setup

After you have completed the global setup of the plugin you can select which projects will actually be able to use the feature brought by the plugin. Due to the way the plugin implements this feature it is also possible to configure which Google Calendar is actually being displayed on a project level base.
The project level setup consists of the following two tasks:

Retrieve the embedding-code from Google

You should retrieve the actual Google Calendar embedding-code (<iframe>). Therefore, go to the Google Calendar which you want to embed and:

  1. Click on "Settings" in the upper left hand corner
  2. Click on the "Calendars" tab
  3. Select the calendar you want to use
  4. In the "Embed This Calendar" section, copy the entire <iframe> code from the text box

(If this is a private calendar, you will have to replace the "src" in the <iframe> with the HTML found by clicking the blue "HTML" block in the "Private Address" section on the same page.)

Configure the plugin per each project

Now the copied <iframe> code should be added to a Redmine project. At first we need to make sure the plugin is enabled for the project.
In the preferred Redmine project, go to the "Project settings":

  1. On the "Modules" tab: enable the plugin-module by checking "Google Calendar".
  2. On the "Information" tab: paste the <iframe> code, that you have copied to your clipboard from the Google Calendar you want to embed, into the 'Google Calendar IFrame' project custom field you created in the global setup under step 1.

After that, a new item named "Calendar" will show up in the project menu. Click on this item to see your Google Calendar.

Uninstalling

  1. Remove the directory "redmine_google_calendar" from the plugin-directory "../vendor/plugins"
  2. Restart Redmine

Licensing

This plugin is open-source and licensed under the GNU General Public License v2 (GPL). See the included GPL.txt file for details.

Updated by Mischa The Evil almost 15 years ago · 5 revisions