tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/21373-how-do-i-embed-a-google-calendarCascade CMS: Discussion 2016-03-04T22:09:18Ztag:help-archives.hannonhill.com,2010-02-09:Comment/391613392016-02-13T15:12:46Z2016-02-13T15:15:10ZHow do I embed a google calendar?<div><p>Hi,</p>
<p>We are also experimenting this right now. Here is the
prototype:</p>
<p><a href="http://www.upstate.edu/roomcal/lib220.php">http://www.upstate.edu/roomcal/lib220.php</a></p>
<p>It is very simple to implement. First, we use PHP. Second, we
put code of the following type in a text block and attach it to a
block chooser:</p>
<pre>
<?php $today = date("Ymd");
print "<iframe src='https://calendar.google.com/calendar/embed?showTitle=0&showDate=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&mode=DAY&dates=$today/$today&height=600&wkst=1&bgcolor=%23FFFFFF&src=ugeue2am20hh85l7s96ih5kpm11l5pfp%40import.calendar.google.com&color=%2329527A&ctz=America%2FNew_York' style='border-width:0' width='320' height='600' frameborder='0' scrolling='no'></iframe>";
?>
</pre>
<p>That's all about it. If you wish, you can also attach the text
block to a region.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/391613392016-02-13T18:59:09Z2016-02-13T18:59:10ZHow do I embed a google calendar?<div><p>Hi Wing,</p>
<p>Thanks! I toyed around and am beginning to understand how this
can happen.</p>
<p>My calendar extends several months in the future. I want to show
the month view with the option for viewers to click onto the future
months. The prototype you showed is for today view only. How can I
adjust for the month?</p>
<p>Thanks again!</p></div>kztanyatag:help-archives.hannonhill.com,2010-02-09:Comment/391613392016-02-13T21:00:28Z2016-02-13T21:00:28ZHow do I embed a google calendar?<div><p>You need to play with the dates parameter. You need to, for
example, calculate the end time using PHP, and plug it after the
slash. See <a href="http://stackoverflow.com/questions/22757908/google-calendar-render-action-template-parameter-documentation">
Google Calendar render action Template parameter documentation</a>
for more info.</p></div>Wing Ming Chan