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.
...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&"
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
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&"
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