show_upcoming not working
I'm trying to use Low Events to set up an archive of future and past events and having difficulty using the show_upcoming="no" parameter.
The template code I'm using is:
{exp:low_events:entries
channel="events"
orderby="random"
status="open"
limit="5"
category="7"
unit="month"
show_passed="yes"
show_upcoming="no"
show_expired="yes"
date="{embed:this_date_range}"
}
{title}
{event_details:start_date format="%D, %j.%n.%y"}
{if no_results}
Quiet month.
{/if}
{/exp:low_events:entries}
What I'm finding is that even events who's Low Events field is filled in for Feb next year are still showing in the list.
If you need site logins to see the details, please let me know an dI'll email them over.
Replies
Low 14 Dec 2012 16:21
What does the {embed:this_date_range} variable equate to when the tag is called?
Moogaloo 14 Dec 2012 16:29
it would be something passed into the embed like 2013-03
You can see how it's working here - http://leadmill.dev.moogaloo-labs.co.... and then here - http://leadmill.dev.moogaloo-labs.co....
Low 14 Dec 2012 16:40
Okay, so which entry that shouldn't be there is there? Perhaps a screenshot pointing it out, because of the random order?
Moogaloo 14 Dec 2012 16:43
basically any events that are upcoming shouldnt be showing - this section is supposed to be an archived list of past events so as events come and go they start filling up this section.
Most specifically, http://leadmill.dev.moogaloo-labs.co.... should only show up to yesterdays event Itchy Feet - Blue Lip feel shouldnt be there as it's an upcoming event.
On this page - http://leadmill.dev.moogaloo-labs.co.... you should see anything for 2013 as no event timetabled for 2012 could have happened yet.
Shall i email over logins?
Low 14 Dec 2012 16:57
Hmm, looks like the show_upcoming="" parameter doesn't actually do anything for the low_events:entries tag. Not sure how I missed that. I'll get that fixed. If you drop me an email, I'll get a patched file to you.
Moogaloo 14 Dec 2012 16:59
email sent to your @loweblog.com address
Davor Peic 24 Jun 2013 14:28
Just topped to this too, I guess for showing future entries I need to use show_future_entries="yes" (EE) parameter and not show_upcoming="yes" as it is in LE docs, this option is the only one that works for a custom date range and future events.
Andy 25 Jun 2013 06:34
I'm getting this with both the show_upcoming AND show_passed params i.e. the exp:low_events:entries tag always just displays the current events.
Andy 25 Jun 2013 06:38
If used in conjunction with the unit param then they seem to work, but that's not ideal in my case.
Low 25 Jun 2013 12:27
Davor, Andy, can you both try and explain to me what it is you're trying to accomplish, what code you're using for it and how you would expect it to work? I'm not quite sure what the issue is at the moment.
Davor Peic 25 Jun 2013 13:10
Hey Low, Its related on your last comment about show_upcoming parameter not doing much, I have one current event from 20.6.-30.6. and one that starts tomorrow, If I use 'show_upcoming' it doesn't show up (the one from tomorrow), but when I put 'show_future_entries' it shows up.
I'm using it for range, I tried even with hardcoded dates range and it is the same. Must note that event from tomorrow is "one day event".
{exp:low_events:entries channel="availability" author_id="<?php echo $arr_doc_id[$i]; ?>" date_from="<?php echo $date2->format('Y-m-d'); ?>" date_to="<?php echo $date_end->format('Y-m-d'); ?>" show_future_entries="yes" show_passed="no" show_upcoming="yes" {global:param_disable_default}}
Low 25 Jun 2013 13:17
The show_upcoming bit was fixed in v1.1.2.
I feel you might be confusing the show_upcoming and show_future_entries parameters.
show_upcoming applies to the dates set in the LE field.
show_future_entries applies to the entry's native entry date.
If you have the "Overwrite entry and expiration dates" set to Yes in the field options, the native Entry and Expiration dates will be set to the LE field's dates, meaning you will need to use the native show_future_entries/show_expired parameters to have them show up.
I'd actually recommend setting that particular setting to No to avoid confusion.
Davor Peic 25 Jun 2013 13:22
Yeah, its that, it gave some headache yesterday for few hours :) I will turn off Overwriting now I know what it is and use the LE tags.
When you find time, I think it would helpful for many if you put this small info besides "show_upcoming" parameter that it will be overwritten by show_future_entries if "overwriting entry dates" is used.
sorry for this mixup thou :)