All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Problem with Past Events

Todd Richards 30 Jun 2014 03:27 question, complete

I've been reading through other posts and am close, but still running into an issue displaying past events. Here is the idea:

When my client enters an event, they have the option to say "View past events like this", and then they choose from a list via a Playa field. Those then link to the event page to show information.

Here is what I have:

{exp:low_events:entries channel="events"
category="{segment_1_category_id}"
disable="{lv_channel_entry_disable_basic}"
show_future_entries="yes"
show_expired="yes"
show_passed="yes"
unit="year"
status="Open"
limit="1"
require_entry="yes"
url_title="{segment_3}"
}

It's working - unless an event was from 2013. Is there a way to show the events from a previous year as well?

Thanks!
Todd

Replies

  1. Low 30 Jun 2014 09:34

    That opening tag suggests you're using it to display a single event/entry only, based on {segment_3}. For that, you wouldn't even need to use the low_events:entries tag. You could just use the channel:entries tag.

    Think of the low_events:entries tag as a method to display a sequence of events rather than a single one.

  2. Todd Richards 30 Jun 2014 13:39

    Ahhh, sorry for the confusion. I thought I always needed that when working with my events.

    I changed the code and it's working. Thanks again Low!

  3. Todd Richards 30 Jun 2014 13:43

    One quick question about this - if I do use the regular channel entries tag, then it doesn't appear that I can use the {custom_field:start_date} or {custom_field:start_time} tags. Is that expected? Not a big deal because they are in the past. However, I was using a single template for current and past events.

  4. Low 30 Jun 2014 13:45

    You should be able to do that, as it's part of the fieldtype, which works identically with low_events:entries and channel:entries. Just make sure you don't disable custom fields.

  5. Todd Richards 30 Jun 2014 13:47

    OK, never mind. It wasn't working, now it is.....