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

Keeping Past occurances out of a repEEt tag

Development and Programming

joshclark17's avatar
joshclark17
194 posts
16 years ago
joshclark17's avatar joshclark17

Hi All- I’m using the awesome RepEEt plugin, and I’m loving it. However, I’m having one little issue, and that is that I can’t seem to set it up so that past occurrences of events don’t show up in the list. I’ve read the whole documentation for the plugin, and I can’t figure it out. :(

I’ll post my code, but I’m wondering if anyone knows how to kick out those past occurrences. Any help would be amazing!

{exp:repeet:parse date_header_interval="month"} 
{repeet:date_header}<h4>%F, %Y</h4>{/repeet:date_header}
      {repeet:no_results}Oops, looks like there aren't any events in the time range you specified.{/repeet:no_results}

      {exp:repeet:get_ids weblog="events" parse="inward" show_future_entries="yes" begin="2009-01-01" end="2019-01-31"}
  
        {exp:weblog:entries weblog="events" entry_id="{repeet:entry_ids}" dynamic="off" status="open" show_expired="yes" show_future_entries="yes"}
        {repeet:item}
          {repeet:entry_date}{entry_date format="%Y-%m-%d %H:%i"}{/repeet:entry_date}
          {repeet:expiration_date}{expiration_date format="%Y-%m-%d %H:%i"}{/repeet:expiration_date}
          {repeet:interval}{repeat_interval}{/repeet:interval}
          {repeet:include_dates}{include_dates}{/repeet:include_dates}
          {repeet:exclude_dates}{exclude_date}{/repeet:exclude_dates}
          {repeet:display}
            <div class="event_entry"><h4><a href="http://{url_title_path=" title="{title}">{title}</a></h4>
<strong>{repeet:start_time format="%F %d, %Y"}</strong>
{event_time}</div>
          {/repeet:display}
        {/repeet:item}
        {/exp:weblog:entries}

      {/exp:repeet:get_ids}
 {/exp:repeet:parse}
       
kirkaracha's avatar
kirkaracha
273 posts
16 years ago
kirkaracha's avatar kirkaracha

Have you tried it without show_expired=”yes” in the exp:weblog:entries 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.