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: Numbering event days

Development and Programming

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

I am using the Repeet plugin for an event calendar with multi-day events. Is there a way to display what day number of the event that is on the calendar?

So if there was an entry that was 4 days, each day would have the title of the event and “Day 1 of 5”, “Day 2 of 5”, etc.

Does that make sense?

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

Any help on this?

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

I don’t believe Repeet actively tracks which iteration of an event you’re currently displaying - you’d have to modify the plugin file to achieve this. I haven’t had a look, but it likely wouldn’t be too very hard using a simple counter.

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

Anyone know how I would go about doing this?

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

Repeet 1.x doesn’t offer that feature, and it’s not likely it will be added. I will see about adding the feature for “Repeet 2”.

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

any ideas on how to get numbering to display? maybe somehow with php in the template? i’m not much of a php guy.

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

Ok, I managed to get the event days numbered (see below). But any ideas how I can get the total number days for an event? So that I can have “Day 2 of 7”.

{if entries}
<td class='{switch}' valign="top" align='center' width='14%'>
{day_number}
{entries}
<div>
<?php if ($item{entry_id}){ 
} else {
$item{entry_id} = 1;
} ?>
<a href="http://{title_permalink=training/class}">{title}</a>

Day <?php echo $item{entry_id}; ?></div>
<?php $item{entry_id} ++; ?>
{/entries}
</td>
{/if}
       

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.