Suggestion for Events list

lornawebber
@lornawebber
7 years ago
334 posts
It's possible to drop Events from the list, either immediately after the start date, or after a chosen period of time after the start date.
My suggestion is that it would be better to drop them after the *end* date, not the start date, as many events last more than one day.
updated by @lornawebber: 11/28/17 10:10:46AM
soaringeagle
@soaringeagle
7 years ago
3,304 posts
you can most likely just change your list call to list by end date not start date? the list order might be a lil off but i think they would stay in the list till the end date that way


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
lornawebber
@lornawebber
7 years ago
334 posts
Thanks @soaringeagle - I will look into that.
michael
@michael
7 years ago
7,714 posts
That's a great point soaringeagle. The end date is an optional one which might not be active by default.

If you add 'event_date' into your jrCore_list call as a search parameter that will cause the setting on "show past events" to be ignored because you're asking for specific dates.

So if you ask
{jrCore_list module="jrEvent" search1="event_date > 0" .....}
will ignore the "Show Past Events" setting all together. add a few more in to get what you're after
{jrCore_list module="jrEvent" search1="event_date > 0" search2="event_end_date > `$smarty.now`"}
"Get events where the end date is in the future"
soaringeagle
@soaringeagle
7 years ago
3,304 posts
see i figured there was an easy way to do it


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags