Opened 15 years ago
Closed 8 years ago
#7152 closed enhancement (wontfix)
View all calendars open in source google account calendar
Reported by: | Owned by: | Stefan Simroth | |
---|---|---|---|
Priority: | normal | Component: | GoogleCalendarPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Hi - I would love it if the plugin would capture all the calendars/tasks that are selected for view in the source Google Calendar. For instance, I have the US holiday's calendar enabled in my source calendar, but you don't see them in the embedded tracs view of the google calendar. It would be helpful for me to be able to view different calendars at once b/c I could differentiate categories of items on the calendar that way. Thanks if this is possible!
Jen
Attachments (0)
Change History (5)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Hi - Thanks! One question about the HTML embed helper URL...I have this now:
src="http://www.google.com/calendar/embed?bgcolor=%23FFFFFF&src=portlandharbor.nrda%40gmail.com&color=%23333333&src=ska0fqguuf3c8ob9u841if9ve4%40group.calendar.google.com&color=%23711616&src=en.usa%23holiday%40group.v.calendar.google.com&color=%23705770&ctz=America%2FLos_Angeles" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"
Should I delete everything after Angeles" ? I'm not a web person and don't have access to replace the URL myself. I need to bug someone to do it, so I want to get it right the first time :) This is GREAT if it works right !!!
comment:3 Changed 15 years ago by
Um, can we delete that URL after you tell me if I've done it right? I don't actually want people to access it.
comment:4 Changed 15 years ago by
Well, I can't delete anything, but I think it should be alright as you have to either share the calendar with others or make it public so that others can access it.
The answer: yes, remove everything after Angeles" (including the ") as well as the beginning src=" part. Then it should be alright. Maybe also remove the bgcolor=%23FFFFFF& to be sure.
Note that you and your team colleagues have to be logged into Google in order to access the private calendars. Otherwise you'll get a note that you don't have access to some calendars (and in your case only the USA holidays will be displayed)
This is already possible, but not comfortably configurable, I have to admit.
You just have to extend the
calendar_url
with the other calendars that you want to include. This effectively means to add another&src=asdkjakdj3423hj
part (and optional&color
part) to the string. Better add it all before the&ctz
and&pvttk
parts of the URL (esp. if you use a color).Sorry, I forgot to mention this.
Example
To get from the original example
http://www.google.com/calendar/embed?src=823sd8f7f87bgj67jhssd6f5%40group.calendar.google.com&ctz=Europe/Berlin&pvttk=92h3bfjgh2345gsah355hjh
to a URL with three calendars and colors, it would look like that (additional part in bold slightly visible)
http://www.google.com/calendar/embed?src=823sd8f7f87bgj67jhssd6f5%40group.calendar.google.com
&color=%230D7813&src=my.name%40googlemail.com&color=%23A32929&src=en.german%23holiday%40group.v.calendar.google.com&color=%23B1440E
&ctz=Europe/Berlin&pvttk=92h3bfjgh2345gsah355hjh
So a "calendar + color" part looks essentially like this:
&src=en.german%23holiday%40group.v.calendar.google.com&color=%23B1440E
To ease the link-finding you can also the Embed Helper where you can select the calendars to display and the colors. Then you would need to copy the long link inside the
iframe src
part and add it to your trac.iniIn case of problems with that procedure, modify the string a little: remove the
height=600&wkst=1&
part and all otheramp;
occurrences in the string (that's how I do it)I'm sorry that this
calendar_url
configuration is such a mess! But at least it's a task you normally wouldn't do daily ;)Would be an improvement to make this easier (i.e. use the embedhelper and take the whole string it provide and sort of "clean it" or sth like this..)
Please tell me if that worked for you and the explanation was helpful then I will update the wiki page!