So I want to have a listing of events that are happening today. Some of these are repeating events, and some are just plain jane one-off events. Can I show these all in one list? Right now I can only show repeating events - the none-repeating ones don’t show in the list. In my custom ‘interval’ drop-down field (in the CP), I have 3 options: “none”, “weekly” and “Thursdays, Fridays and Saturdays”.
Here’s my current code:
<pre><code>{exp:repeet:parse date_header_interval="day"} {repeet:date_header}<h1>Today at the library</h1>{/repeet:date_header} {repeet:no_results}<h1>Today at the library</h1>There are no events scheduled for today.{/repeet:date_header}
{exp:repeet:get_ids weblog="events" parse="inward"}
{exp:weblog:entries weblog="events" category="not 4" entry_id="{repeet:entry_ids}" dynamic="off" show_expired="yes" show_future_entries="yes" sort="asc"}
{repeet:item}
{repeet:entry_date}{entry_date format="%Y-%m-%d 00:01 AM"}{/repeet:entry_date}
{repeet:expiration_date}{expiration_date format="%Y-%m-%d 11:59 PM"}{/repeet:expiration_date}
{repeet:interval}{event_interval}{/repeet:interval}
{repeet:include_dates}{/repeet:include_dates}
{repeet:exclude_dates}{event_exclude_dates}{/repeet:exclude_dates}
{repeet:display}
<div class="eventToday {if entry_date <= current_time}eventPast{/if}">
<span class="hour">{repeet:start_time format="%g:%i"}</span><span class="ampm">{repeet:start_time format="%a"}</span>
<h4>{title}</h4>{event_description}
</div>
{/repeet:display}
{/repeet:item}
{/exp:weblog:entries}
{/exp:repeet:get_ids}
{/exp:repeet:parse}[/code]
Thank you for any help! Seems like this should be possible to do.
Hi Brian
This is exactly the question I have at the moment as well. I’m working on an EE powered site for a church. They want repeated entries for their services (that are the same time and day every week), as well as normal, one-off entries. This ideally needs all to be displayed on the same calendar.
Has anyone out there figured out how to do this? Is it possible with EE? The alternative is integrating Google Calendar, but I’d rather not.
Thanks in advance,
Jim
We need more eyeballs - I should probably have posted in the ‘how-to’ section…
I haven’t tried it yet, but it seems like you should be able to put the event date and time in the ‘include_dates’ custom field. But that means you have to enter the information in a generic textarea, and you’re not using the built-in start time functionality of EE - you might even have to enter that info twice to get it to show correctly?
I emailed Mr. Wilson directly, but haven’t heard anything back… I’m hoping someone stumbles along who knows how to do this - repeet is perfect if I can get this to work. I’d hate to have to hack some other solution together.
It sure seems like this must be a bug? What is the point of being able to put in an entry, assign it a repeet interval of ‘none’ (it’s a one-off event), yet not ever have it show up anywhere - even on the day of the event? That makes no sense. Still waiting to see if Mr. Wilson will reply. Water running out… Low on food… Only three matches left… I’m losing hope.
After searching through the forums I found the answer. It is very important that you name your ‘event_interval’ dropdown list (or textfield) names exactly as shown in the plug-in documentation.
I had:
None Weekly Thursdays, Fridays, Saturdays
That doesn’t work. This works:
none weekly Thursdays, Fridays, Saturdays
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.