I am pulling a list of the upcoming occurrences of an event from the calendar. This event occurs on the first and third Sundays of each month, with a couple of custom dates added. All dates appear correctly on the calendar (well, for one the time is actually off, but I’ll ignore that for now).
But the list is not displaying all events in the specified time period (the next year). At the moment, only the next occurrence appears (which happens to be one of the custom dates). If I remove that date, no upcoming occurrences are displayed at all.
Here is the code from my template:
<h3>Upcoming Meetings</h3>
{exp:weblog:entries weblog="calendar"}
<ul>
{exp:repeet:list_dates from="today" to="1 year" entry_date="{entry_date format="%Y-%m-%d %H:%i"}" expiration_date="{expiration_date format="%Y-%m-%d %H:%i"}" interval="{event_repeat_interval}"}
{repeet:include_dates}{event_include_dates}{/repeet:include_dates}
{repeet:exclude_dates}{event_exclude_dates}{/repeet:exclude_dates}
{repeet:display}<li>{repeet:start_time format="%F %j"}</li>{/repeet:display}
{/exp:repeet:list_dates}
</ul>
{/exp:weblog:entries}
This is especially frustrating because it had been working when the page was first published. But when I happened to check it today, it’s no longer working correctly. There have been no intervening changes to the template.
Any suggestions? I’d like to use the code to display similar lists of other events on other pages.
Haven’t heard anything yet other than an “i’ll take a look at it” from him when I first found the issue. Several emails since then and no response.
An easy workaround is to set the interval to NONE where you would normally set it to “this relative day of the month” and then manually type the actual event dates into the include dates field. Since its only one date a month you can fill in a whole year of dates in a few minutes. Maybe he’ll fix it by then…
As for 2.0- if he doesn’t update it now I wouldn’t bet on it being updated for ee2 compatibility.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.