Example Calendar Template

This is an example calendar template which will allow choice of which calendars to display on the page as well as a legend.

<wt:input name="Show Calendars" control="Multiple Choice Options" source="/Data/Calendars"/>

<div id="contHolder"[wt:wt.vars.class]>

        <div id="breadcrumbs"><wt:breadcrumb/></div>

        <h1 class="pageHeadings">[wt:Menu Text]</h1>

        <wt:addButton type="General" source="Content" caption="Add a Content Block" noteditable="Date,Intro,Expires On,Expires,Force to Archive" />

        <wt:list type="General" source="Content" template="Elements/General"/>


        <h3 class="subHeadings">Calendar Legend</h3>

        <wt:extension name="Calendar" show="Calendar Control" calendars="[wt:wt.vars.Show Calendars]"/>


        <br/>

        <h3 class="subHeadings">Calendar</h3>

        <wt:extension name="Calendar" width="99%" height="800px" calendars="[wt:wt.vars.Show Calendars]"/>


        <wt:include template="Elements/Table of Contents"/>

        <div class="clearBoth"></div>

</div><!-- cont holder -->
To hide the day or week views, you can use the "hasdayview" and "hasweekview" attributes, eg:
 
<wt:extension name="Calendar" width="99%" height="800px" hasdayview="no" hasweekview="no"/>