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

Getting Repeet to Show Multiple Listings properly

Development and Programming

dragonfly444's avatar
dragonfly444
2 posts
16 years ago
dragonfly444's avatar dragonfly444

I have looked over this problem over and over but can’t figure out what I am doing wrong. I am using repeet to list custom dates for an event. The code I am using comes directly from the Repeet documentation. The example page is http://www.sweetteepie.com/primitiveskills/index.php?/course-calendar/details/earth_living_1. Beware, this site is in the very early stages and the formatting is virtually non-existent!

I am not sure where the problem lies but here is what I am trying to achieve. Course Listing with the following custom dates (I am using the custom date include fields) with the following info…

05/15/2009 7:00 PM – 05/18/2009 12:00 PM 06/26/2009 7:00 PM – 06/28/2009 12:00 PM 08/24/2009 7:00 PM – 08/30/2009 12:00 PM

I have the page’s entry date as 2009-05-04 07:00 PM, and expiration date is 2019-05-04 12:00 PM. Not sure how to handle the entry and expiration dates as documentation didn’t really explain that well. Hopefully, this is correct for what I am trying to do. What I want to see is Course Listing with start date - end date for each custom entry. Like this

Earth Living 1: May 15 - May 18, 2009 June 26 - June 28, 2009 August 24 - August 30, 2009.

Instead I am getting this…

Earth Living 1: May 15 - May 15, 2009 May 16 - May 16, 2009 May 17 - May 17, 2009 Jun 26 - Jun 26, 2009 Jun 27 - Jun 27, 2009 Aug 24 - Aug 24, 2009 Aug 25 - Aug 25, 2009 Aug 26 - Aug 26, 2009 Aug 27 - Aug 27, 2009 Aug 28 - Aug 28, 2009 Aug 29 - Aug 29, 2009

I excluded the start date so it doesn’t show up and thought maybe offset=1 would be a better option but it didn’t work when I tried it. The first set of dates, show all three that are actually listed but the last two are all missing one day. For some reason it doesn’t seem to understand that May 15 is the start date and May 17 is the end date. I tried to use different repeat_intervals but wasn’t sure what to useso now I am using repeat_interval=”none”.

Below is the code that I am using. Please let me know if you can figure out what I am doing wrong. Thanks in advanced!

Candi

{exp:weblog:entries weblog="course-calendar" limit="1" show_future_entries="yes" status="open" show_expired="yes"}
<h1>{title}</h1>
{event_details}
Coming occurrences of this event:
 <ul>{exp:repeet:list_dates from="today" to="5 years" entry_date="{entry_date format="%Y-%m-%d %H:%i"}" expiration_date="{expiration_date format="%Y-%m-%d %H:%i"}" max_list="25" interval="{event_interval}" }
{repeet:include_dates}{event_dates}{/repeet:include_dates}
{repeet:exclude_dates}{exclude_dates}{/repeet:exclude_dates}
{repeet:display}<li>
<a href="http://lincolnite.com/ee/repeet_example2/{repeet:start_time" title="View other events happening on {repeet:start_time format=">_{repeet:start_time format="%M %d -"} {repeet:end_time format=" %M %d, %Y"} </a>
</li>{/repeet:display}
{/exp:repeet:list_dates}</ul>
{/exp:weblog:entries}
       

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.