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

Repeet: Listing All Days in an Event

Development and Programming

james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

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?

       
Derek Hogue's avatar
Derek Hogue
316 posts
17 years ago
Derek Hogue's avatar Derek Hogue

James - you can indeed. This is well-documented in the Repeet documentation:

http://lincolnite.com/ee/repeet/#list_dates

Best, Derek

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

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?

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

Anyone?

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

i’m sorry…i was out. Did anyone reply yet?

       
Mr. Wilson's avatar
Mr. Wilson
131 posts
17 years ago
Mr. Wilson's avatar Mr. Wilson

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.

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

Please let me know if you or any of your “power users” want access to my install to investigate. I’d be happy to let them take a look.

       

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.