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 Not Listing Single Event's Occurrences

Development and Programming

kirkaracha's avatar
kirkaracha
273 posts
16 years ago
kirkaracha's avatar kirkaracha

Repeet doesn’t list occurrences for a single event on a single-entry template with the entry ID in the URL. Nothing inside the Repeet code displays; all I get is the title.

My entire template:

{exp:weblog:entries weblog="events" show_expired="yes" show_future_entries="yes"}

{title}

{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"}" max_list="25" interval="{repeat_interval}"}
This event occurs on the following dates over the next year:
{repeet:include_dates}{include_dates}{/repeet:include_dates}
{repeet:exclude_dates}{exclude_dates}{/repeet:exclude_dates}
{repeet:display}
  <li>
    <a href="http://yoursite.com/events/{repeet:start_time" title="View other events happening on {repeet:start_time format=">_      {repeet:start_time format="%l, %F %d, %Y %g:%i %A"}{repeet:end_time format=" - %g:%i %A"}_    </a>
  </li>
{/repeet:display}
{/exp:repeet:list_dates}

{/exp:weblog:entries}
I added show_expired and show_future_entries because it’s an event calendar, and took out body because the weblog has custom fields Other than that it’s the same code as from the Repeet page:
{exp:weblog:entries weblog="events"}

{title}
{body}

{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"}" max_list="25" interval="{repeat_interval}"}
This event occurs on the following dates over the next year:
{repeet:include_dates}{include_dates}{/repeet:include_dates}
{repeet:exclude_dates}{exclude_dates}{/repeet:exclude_dates}
{repeet:display}
  <li>
    <a href="http://yoursite.com/events/{repeet:start_time" title="View other events happening on {repeet:start_time format=">_      {repeet:start_time format="%l, %F %d, %Y %g:%i %A"}{repeet:end_time format=" - %g:%i %A"}_    </a>
  </li>
{/repeet:display}
{/exp:repeet:list_dates}

{/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.