Adding a Calendar as an option module:

In the manage templates screen, scroll to the bottom and click Create new module.

Name: calendar
Module Body: Paste the below snippet into this text box.

Open module sidebar from the manage template screen in MT. Insert the following code where you would like the calendar to appear:

<$MTInclude module="calendar"$>

Click save and rebuild your indexes. You now have a calendar!

module body:
<table border="0" cellspacing="4" cellpadding="0">
<td colspan="7" align="center">
<$MTDate format="%B %Y"$></td>
<td align="center">Sun</td>
<td align="center">Mon</td>
<td align="center">Tue</td>
<td align="center">Wed</td>
<td align="center">Thu</td>
<td align="center">Fri</td>
<td align="center">Sat</td>
<td <MTCalendarIfToday>bgcolor="#EEEEEE"
</MTCalendarIfToday> align="center">
<MTCalendarIfEntries><MTEntries lastn="1">
<a href="<$MTEntryLink$>">

Close Window