tricore Guest
|
Posted: Sun Dec 10, 2006 2:40 am Post subject: Google HTML Calendar Hack |
|
|
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! |
|