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 - can I show repeating entries as well as non-repeating (normal) entries?

Development and Programming

Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

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.

       
Jim Pannell's avatar
Jim Pannell
187 posts
17 years ago
Jim Pannell's avatar Jim Pannell

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

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

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.

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

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.

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

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

       

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.