By ugenda on Tuesday, 07 June 2022
Replies 11
Likes 0
Views 1.2K
Votes 0
I want to create a day view of events containing only the events that start today. Below I want to add a module that shows all events that started in the past but have an enddate in the future.

The reason is that if I show the events that started in the past in the list view of today, the view will show a quite long list of 'old' events first (like exhibitions that have no start time and started months ago). Therefore I want to filter those out.
I did create latest events module and placed in the jevpostjevents_day.listevents position, but I can't work out what the setting should be to show only events with a startdate in the past. It keeps showing the current events.
I think this setup will do it for you
Screenshot 2022-06-08 at 09-22-15 Modules JEvents Latest Events Module - J33 jQuery - Administration.png

it will pick up a combo of events
1. Ending after now and starting before the end of today
2. Ending after the start of today, starting before now

It worked in my tests - the one issue could be that it could pick up events that ended earlier today, If its important to exclude these then that may be possible using the TimeLimit plugin
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
The 0 does the trick. And the setting should be: Only past events. In your example your have All events, but this will show all events of today as well.

Now I have the module set up correctly. But how do I leave the multi day events with a startdate in the past out of the list view in current day?
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
check the options in the 'multi day event display' options field - there is an option to hide them there
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Could you please be more specific. Where can I find this option? I've been through all settings (in JEvents itself as the menu item settings as well), but can't find any option for multi day events. I've been through your documentation too.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
See this setting in the latest events module

Screenshot from 2022-06-09 11-45-07.png


If you choose "Display on first day only" then regardless of how you set up the event when you created it then it would only appear on the day it starts. If you choose "Use setting from the event itself" it will respect the way you want the event to appear in the calendar so that some can appear on all days and some only on the first day.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I think you misunderstand me: I have a menu item with a day view, showing all events of the current day in a list. I want in the list of that day only events that have a startdate of today. I don't want the multi day events that started in the past in the list of today.

Below the list I want to create a module showing multi day events that have startdate before today. So I can separate the multi day events from todays events and show them on the same page in two lists..

See our current site: https://www.ugenda.nl/agenda/ Here you first see a list of todays events. If you scroll down you see a list of 'continuous events'.

Second: I thought I had the module set correctly. But I still notice problem. If I set the offset days to 0, the module will not only show multi day events that started in the past, but it will also show events of today where the start time has passed.

And one other question: I added the module to a JEvents module position. I have set the module to show the title, but it seems the Events module positions ignores the title of the module.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I think you misunderstand me: I have a <strong>menu item</strong> with a day view, showing all events of the current day in a list. I want in the list of that day only events that have a startdate of today. I don't want the multi day events that started in the past in the list of today.


So the top part of the home page is the component output for a day list of events. You have set up the multi-day events to show on ALL days but in this particular menu item you want to ONLY show the events starting on a specific date (today by default).

In essence you want the menu item/component view to be able to do what the latest events module does when it ignores multi-day events that started in the past.

Is that correct?

If so - then this isn't possible at present but I could look at what is involved in incorporating this condition.


Second: I thought I had the module set correctly. But I still notice problem. If I set the offset days to 0, the module will not only show multi day events that started in the past, but it will also show events of today where the start <strong>time</strong> has passed.

There is an option in the module for 'measure time from now' - at present this only affects mode 2 (future events). I can look at the code to extend this to mode 3 also.

And one other question: I added the module to a JEvents module position. I have set the module to show the title, but it seems the Events module positions ignores the title of the module.

It should not do - this is controlled by the template.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I've launched the new site, but I'm still not satisfied how the day calendar is listed. If you look at this page: https://ugenda.nl/agenda you can see that there are a lot of multiday events (like exhibitions) that populate the current day. A user has to scroll through a long list before he can view the events that are most relevant for today, because exhibitions either have no start time or start earlier than for instance concerts.

I would like to do a feature request to have an option to leave out the multiday events, possibly by date range. For instance, if there is a three day festival, it's ok if it is in the list, but an exhibition that stated six months ago should be left out.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
An on/off filter for multi-day events should be feasible to implement. Specifying the date range could be more complicated to implement and could impact performance.

I'll take a look at this - in the meantime you could look at the time limit plugin. It would allow you to hide all events that started more than 3 days in the past on a specific menu item.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
This plugin only seems to filter events that passed. Not multi day events.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm working on replicating the latest events module setting in the single day menu item view options. Should be in the next release.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post