We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Calendar: Next/Previous Month

Development and Programming

seven24's avatar
seven24
11 posts
16 years ago
seven24's avatar seven24

I am having difficulty with the calendar ‘module’ and repeet plugin.

The next month / previous month links are not working. When the links are selected the current month data appears even though the URL is changing to reflect the next or previous month.

Site reference: http://www.kingstreet.org/calendar

Code of calendar template is included below

<h1>Event Calendar</h1>

<!-- calendar -->

{exp:repeet:get_ids weblog="event" parse="inward" calendar="yes"}
{exp:repeet:calendar switch="calendarToday|calendarCell" weblog="event" entry_id="{repeet:entry_ids}" interval_field="event_repeat" include_field="event_include_dates" exclude_field="event_exclude_dates" show_future_entries="yes" show_expired="yes" dynamic="off"}

<table class="calendarBG" border="0" cellpadding="0" cellspacing="0" summary="Event Calendar" width="100%" id="event_calendar">
<tr class="calendarHeader">
<th colspan="5"><h2>{date format="%F %Y"}</h2></th>
<th><div class="calendarMonthLinks"><a href="http://{previous_path=calendar}" title="{previous_date format=">« {previous_date format="%F %Y"}</a></div></th>
<th><div class="calendarMonthLinks"><a href="http://{next_path=calendar}" title="{next_date format=">{next_date format="%F %Y"} »</a></div></th>
</tr>
<tr class="calendarDayHeading">
{calendar_heading}
<td>{lang:weekday_long}</td>
{/calendar_heading}
</tr>

{calendar_rows}
{row_start}<tr class="calendarRows">{/row_start}

{if entries}
<td>
<div class="{switch}"><a href="http://{day_path=calendar/day}">{day_number}</a></div>
{entries}
<div class="calendarEvent"><span class="calendarSpacer">  </span><a href="http://{title_permalink=calendar/info}">{title}</a></div>
{/entries}
</td>
{/if}

{if not_entries}
<td><div class="{switch}">{day_number}</div></td>
{/if}

{if blank}
<td class="calendarBlank"> </td>
{/if}

{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:repeet:calendar}
{/exp:repeet:get_ids}

<!-- /calendar -->
       
smartpill's avatar
smartpill
456 posts
16 years ago
smartpill's avatar smartpill

My guess would be that you need to remove dynamic=”off” from the exp:repeet:calendar tag.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.