List: Passed Concerts & List Dynamic Concert entries.
Hi.
I want to create e simple list, of passed Events. But I don't understand how to acheive this:
I taught it works with "show passed events" It doesn't.
Then I tried "unit="passed". This doesn't work
Then I tried "show_future_entries". This doesnt work.
My code looks like this:
{exp:low_events:entries channel="konzert" show_passed_events="yes"}
{konzert_datum:start_date format="%d.%m.%Y"}
{konzerttitel}
{/exp:low_events:entries}
What do I miss?
I have also another question:
On the indexpage there is a list with the 4 next concerts.
{exp:low_events:entries channel="konzert" limit="4" show_passed_events="no"}
{konzert_datum:start_date format="%d.%m.%Y"}
{konzert_datum:start_time format="%H:%i"}
{konzerttitel}
{/exp:low_events:entries}
When the concert has passed does the entry disappear or do I have to ad something else?
Sorry for this stupid questions but I don't get along wit the intended tag formatting.
Replies
Low 21 Aug 2012 13:16
Hi Kaspar,
Try using the parameter show_passed="yes" instead of show_passed_events="yes".
Low 21 Aug 2012 13:17
Oh, and for a list of passed events, use the parameter unit="passed".
Kaspar Allenbach 21 Aug 2012 13:38
So it should look like this?:
{exp:low_events:entries channel="konzert" show_passed="yes" unit="passed"}
{konzert_datum:start_date format="%d.%m.%Y"}
{konzerttitel}
{/exp:low_events:entries}
That just shows every entry no matter which date.
Low 21 Aug 2012 13:39
Yes. And you don't even need to use the show_passed="" parameter when using unit="passed". What version are you on? The unit="passed" was introduced in v1.0.3.
Kaspar Allenbach 21 Aug 2012 13:54
I use 1.0.3 Bought it today. EE is up-to-date.
Okay, now It displays only the newest entry in the future (One from the year 2013 although I have several entries form 2013) and the past events are not shown.
{exp:low_events:entries channel="konzert" show_passed="yes"}
{konzert_datum:start_date format="%d.%m.%Y"}
{konzerttitel}
{/exp:low_events:entries}
Low 21 Aug 2012 13:58
Is this online somewhere? Can I take a look? I'd need SuperAdmin access to your install. You can send login info to hi at gotolow dot com.
Kaspar Allenbach 21 Aug 2012 15:12
Okay, Low solved my passed-list events thank you for that. If anyone is interested, it looks like this:
{exp:low_events:entries channel="konzert" date="{current_time format="%Y-%m-%d %H:%i"}" unit="passed"}
{low_entry_field:start_date format="%d.%m.%Y"}
{title}
{/exp:low_events:entries}
I have also a List which shows every upcoming event from the year 2012
I now managed to get it to work with this:
{exp:low_events:entries channel="konzert" date="{year}" unit="upcoming" show_passed="no"}
When I write 2012 insted of the variable {year} the filtering of the passed events doesn't work. Why is that?
Low 21 Aug 2012 15:14
It probably has to do with a bug. I can send you a patched file if you want. The fix will be in the next version anyway.
Low 21 Aug 2012 15:19
Oh, and you should probably ask Zenbu's developer to add support for Low Events to his add-on. :)
Kaspar Allenbach 21 Aug 2012 15:33
No need for a patched file. It works just fine this way.
Yeah I will look with Zenbu.
Thank you for your time.
Kasparar.
Kaspar Allenbach 22 Aug 2012 10:36
Hi Low. I think I'd need a patched version. Sorry.
In the 2012 list there are Concert displayed from 2013.
www.simonheggendorn.ch
Mail: bonjour at kasparallenbach dot ch
Kaspar Allenbach 22 Aug 2012 10:44
Oh and the concerts on the very first list doesn't seem to appear on the 2012 list, except for one (21st Century Orchestra "Bond" from 6.oct) ?? That is realy strange.
31.08.2012 21:00 Biggles Releasekonzert «Cloudspeaker»
(Ist not in the 2012 list. But it's set to "sticky" does that have any influence?)
06.09.2012 21:00 Zisman&Heggendorn
(should be on the 2012 List but isn't)
05.10.2012 19:30 21st Century Orchestra "Bond"
(should be on the 2012 List but isn't)
06.10.2012 19:30 21st Century Orchestra "Bond"
(Is on the 2012 List. Weird.)
Low 22 Aug 2012 11:02
I'll send you the patched file. If that doesn't help, I'd like to take another look myself. Do I still have access to the site?
Low 22 Aug 2012 11:04
You can also try and apply this fix yourself, by the way. Shouldn't be complicated.
Kaspar Allenbach 22 Aug 2012 12:08
Yes. Your access is still active.
I applied the fix myself. now date="2012" seems to work. But the above described problems persist.
Low 22 Aug 2012 12:23
I've changed the unit="upcoming" to unit="year", which should solve the problem. There's some caching in place -- I'll leave that up to you to clear.
Using unit="upcoming" will always show all upcoming events. Using unit="year" will restrict entries to given year, so that's what you need.
Kaspar Allenbach 23 Aug 2012 07:11
Ah okay. Thank you very much for your help.
Low 23 Aug 2012 07:13
Just one more thing: using unit="year" will show passed events as well, despite using show_passed="no". This will change in a future version. For now, you could hide those passed events by using a conditional:
Kaspar Allenbach 23 Aug 2012 08:55
Hmm. That doesn't seem to work:
{exp:low_events:entries channel="konzert" date="2012" unit="year"}
{if event_dates:passed == ''}
{konzert_datum:start_date format="%d %M %Y"}
{title}
{/if}
{/exp:low_events:entries}
Do I have to ad something in the conditional brackets?
{if event_dates:passed == 'n'}
doesn't work.
{if event_dates:passed == '{current_time format='%Y-%m-%d %H:%i'}'}
doesn't work.
Low 23 Aug 2012 08:57
You should replace "event_dates" bit to the short name of the Low Events custom field. So, in your case, {if konzert_datum:passed == ''}