I am using Repeet on an events calendar. There is a begin date and an end date as well as an excluded dates field. So the calendar works as planned. Now the problem is the single event entry page template. How can I list all the dates that are INCLUDED in the event? So basically output would be something like this:
Monday, April 17, 2008 Tuesday, April 18, 2008 Thursday, April 20, 2008 Friday, April 21, 2008
How can I get it to do that? Is there a way to do it with the Repeet tags?
James - you can indeed. This is well-documented in the Repeet documentation:
http://lincolnite.com/ee/repeet/#list_dates
Best, Derek
I totally missed that section. There is so much documentation (which is a good thing!). So I have it mostly working now. One problem though is that it is nt recognizing my exclude dates. Here is my code:
{exp:repeet:list_dates from="{entry_date format="%Y-%m-%d"}" to="{expiration_date format="%Y-%m-%d"}" entry_date="{entry_date format="%Y-%m-%d %H:%i"}" expiration_date="{expiration_date format="%Y-%m-%d %H:%i"}" interval="daily"}
{repeet:exclude_dates}{exclude}{/repeet:exclude_dates}
{repeet:display}
{repeet:start_time format="%l, %F %d, %Y"}
{/repeet:display}
{/exp:repeet:list_dates}
So right now it is listing all dates from the entry date to the expiration date. I have a custom field that lists the exclude dates called {exclude}. I know that the exclude dates are working properly because the events display properly on the calendar. Any ideas?
Hi James,
I’m looking into this. I’m seeing several reports lately of Repeet giving incorrect dates. The curious thing is, it isn’t happening to everybody. I have a few “power users” of Repeet who help alert me to problems with Repeet. They haven’t been able to replicate most of the errors. I’ll keep searching.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.