<p>If you're referring to the position of the event inside the loop, so you can just use this:</p>

<pre><code>{{ loop.index }}
</code></pre>

<p>If you're referring to which occurrence the event is (of the full series of recurrences of that event), then I don't think that is currently possible.</p>

CC BY-SA 3.0
2017-04-15T12:50:10.143Z
Yes, the latter. This would be on the calendar view. So think of a series of 3 days (repeating event). There a way I can request this formally?
Ryan Shrum
CC BY-SA 4.0
2022-06-13T17:39:08.293Z
I'm also looking for this functionality - has there been any updates to this?
strandall
CC BY-SA 3.0
2017-04-13T04:25:28.073Z
2017-04-13T04:25:28.073Z
Solspace
<p>I'm using the calendar demo templates that came with Solspace Calendar (<a href="https://solspace.com/craft/calendar/docs/calendar.month/" rel="nofollow noreferrer">documentation here</a>). I've got a couple repeating events and I want to output the occurrence index (<code>Day 1</code>, <code>Day 2</code>, <code>Day 3</code>, etc.).</p>

<p>Here's the code for the specific day:</p>

<pre><code>{% for entry in day.events %}
  &lt;a href="{{ entry.title }}"&gt;{{ entry.title }}&lt;/a&gt;
{% endfor %}
</code></pre>

<p>From the docs, I'd think <code>occurrenceCount</code> to work, but it returns <code>0</code> for each event vs the index of the occurrence.</p>

<solspace><plugin-solspacecalendar>
How can I get the index of an occurrence in a repeating event on the calendar month view?
# How can I get the index of an occurrence in a repeating event on the calendar month view?

(Asked by: username_0 on 2017-03-26)

I'm using the calendar demo templates that came with username_1 Calendar (documentation here). I've got a couple repeating events and I want to output the occurrence index (Day 1, Day 2, Day 3, etc.).
Here's the code for the specific day:
{% for entry in day.events %}
  {{ entry.title }}
{% endfor %}

From the docs, I'd think occurrenceCount to work, but it returns 0 for each event vs the index of the occurrence.

**Tags:** solspace, plugin-solspacecalendar


---

## 1 answers

### Answer by username_1 on 2017-04-13. Score: 1

If you're referring to the position of the event inside the loop, so you can just use this:
{{ loop.index }}

If you're referring to which occurrence the event is (of the full series of recurrences of that event), then I don't think that is currently possible.

> **Comments:**
> **username_0**: Yes, the latter. This would be on the calendar view. So think of a series of 3 days (repeating event). There a way I can request this formally?  
> **username_2**: I'm also looking for this functionality - has there been any updates to this?  

---

