
I recently posted on a way to publish your Google calendar via iWebCal. Well, in usual fashion, Google has responded to users and made this feature available. If you go to “Manage Calendars” and then click on your calendar name, you will now find an HTML button to publish your calendar. Now, click on the “configuration tool” to get the html to copy to your webpage.
…
The first thing I noticed is that it doesn’t pass sub-calendars to this calendar. I really wanted to get that. After rooting around, this is how I fixed that. Cal Man, a Google employee, told me to insert multiple src lines in the iframe. So, let say that your code has xsrc=”http://www.google.com/calendar/embed?src= googlecalendarname&height=614″ mce_src=”http://www.google.com/calendar/embed? xsrc=googlecalendarname&height=614″ style=” border-width:0 ” width=”640″ frameborder=”0″ height=”614″
What you need to do is get the html for the sub-calendar and place the src (after the embed?, not the first src!) next to your current calendar. The end result should look somewhat like this:
src=”http://www.google.com/calendar/embed?src=googlecalendarname &src=anothergooglename&height=614″ style=” border-width:0 ” width=”640″ frameborder=”0″ height=”614″
Of course, this is all in an iframe, but Wordpress gets rid of these brackets, so I didn’t include it. I am trying to find out how to pass the color coding as well. Have fun!
[tags]Google Calendar HTML, Google Calendar Hack, Google Calendar HTML sub-calendars[/tags]
If you would like to make a comment, please fill out the form below.
Have you figured out how to pass the color coding with this hack?
Any news on having the sub-calendars be color coded?
By the way, I found out on this same hack that you cannot reference multiple private keyed calendars. The calendars must be public if you want multiple src lines.
eric, thanx for that tip - i didn’t know it didn’t apply to private cals. i haven’t heard anything on the color coding on this either.
eric, i just did it with multiple private keyed calenders. they are from the same account though
Has anyone figured out how to have the sub-calendars be color coded?
I have tried to enter multiple private cal (from the same account) and I have yet been able to make it work. How did you set it up? Thanks