I am trying to set up a calendar where the class of each date cell alternates using the switch parameter. Instead of alternating classes, however, it is assigning a class of “{switch='one|two'}” to every cell. My code is included below. Can anyone help?
{exp:weblog:calendar switch="calendarToday|calendarCell" weblog="events"}
<table class="calendarBG" border="0" cellpadding="0" cellspacing="0" summary="My Calendar" width="100%">
<tr class="calendarHeader">
<th><div class="calendarMonthLinks"><a href="http://{previous_path=weblog/cal}"><<</a></div></th>
<th colspan="5">{date format="%F %Y"}</th>
<th><div class="calendarMonthLinks"><a href="http://{next_path=weblog/cal}class=calendarMonthLinks">>></a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="calendarDayHeading">{lang:weekday_short}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr>{/row_start}
{if entries}
<td class="{switch='one|two'}" align='center'>
<div class="date-cell">{day_number}</div>
{entries}
<div><a href="http://{title_permalink=weblog/index}">{title}</a></div>
{/entries}
</td>
{/if}
{if not_entries}
<td class="{switch='one|two'}" align='center'><div class="date-cell">{day_number}</div></td>
{/if}
{if blank}
<td class="{switch='calendarBlank one|calendarBlank two'}"><div class="date-cell">{day_number}</div></td>
{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:weblog:calendar}