Saturday, August 03, 2013

How to default HTML render of a Google Calendar on a web page to Week view:

I personally find that the Week view of Google Calendar is more helpful. This is also the case because I have so many calendars and events shared with my account that it just runs out of space trying to fit events into the small squares of a monthly calendar. Furthermore, you don't get the time-block perspective in Month-view that you do in Week-view, where you can easily see where events are double-book or overlapping.

Recently I wanted render a Google Calendar on a web page, and it (of course) defaults to Month-view:

...with options to change it to Week-view, or Agenda-view. I wanted it to default Week-view:

...and optionally display Month-view or Agenda-view.

To do this, you need to add a tiny snip of code to the iframe embed code URL.


For example, your URL probably looks something like this:

src="http://www.google.com/calendar/embed?src=[your_domain].com_[GoogleAuthKey]%40group.calendar.google.com&ctz=America/New_York&amp"


You just need to add to it:

src="http://www.google.com/calendar/embed?src=[your_domain].com_[GoogleAuthKey]%40group.calendar.google.com&ctz=America/New_York&mode=week"


That's it! Now the default view mode = week.


Happy Tech'n,
-J




No comments:

Post a Comment