Apparently the day_path variable doesn’t work with days that don’t have entries. Is there a way to alter the module code so I can grab the Year and Month variable from whatever day is clicked on. I’m trying to set up a reservation calendar where if a day doesn’t have any reservations users can click on it and fill out a form that gets sent to the client, but I need to pass along the date that the user clicks.
Thanks
Here’s my code so far:
{exp:weblog:calendar switch="today|empty" weblog="reservations" show_future_entries="yes" show_expired="yes" status="not closed"}
<table class="calendarBG" border="0" cellpadding="6" cellspacing="1" summary="My Calendar">
<tr class="calendarHeader">
<th><div class="calendarMonthLinks"><a href="http://{previous_path=calendar/index}"><<</a></div></th>
<th colspan="5">{date format="%F %Y"}</th>
<th><div class="calendarMonthLinks"><a href="http://{next_path=calendar/index}class=calendarMonthLinks">>></a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="calendarDayHeading">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr>{/row_start}
{if entries}
<td class='{switch}' align='center'>{day_number}</td>
{/if}
{if not_entries}
<td class='{switch}' align='center'><a href="http://{day_path=calendar/detail}">{day_number}</a></td>
{/if}
{if blank}
<td class='blank'>{day_number}</td>
{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:weblog:calendar}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.