jemproject / JEM-Project

JEM - an Event Manager for Joomla
https://www.joomlaeventmanager.net
GNU General Public License v3.0
25 stars 36 forks source link

FR: Pointing to today (next event) in frontend and backend #1715

Open jojo12 opened 2 months ago

jojo12 commented 2 months ago

The problem: if you want to see in calendar views all (past, actual and future) events, then you need to disable the archive possibility. But then in backend>events and frontend>simplelist (and more lists) you have all events listed and you need time to search the next upcoming event. It would be helpful, when you open the list, the list would point to the actual date.

Is this easy and possible to add? Perhaps as feature you can enable/disable?

mckillo commented 2 months ago

Yes, it's possible. It isn't hard but it need time to dev.

mckillo commented 2 months ago

I've been thinking about this issue and I have several options:

  1. Add background colour to past (red), actual (blue) and future (green) events
  2. Add a new filter to show the events --> Combo: Archive, Today or Incoming events (include today)
  3. Add a new option to the menu setting menu, date combo: incoming from now (order: date ASC), archived until now (order: date DESC), all events + indicate a time (X days).
  4. If the initial filter is Date, show the event page closest to the current day. This option is dependent on the order of the table.

Which do you like? Voting accepted. Do you see any idea more about it?

jojo12 commented 2 months ago

An better idea (which seems me easier) is: if the setting is to archive past events, then force the calendar(s) to show the archived events too!

jobrusche commented 2 months ago

Below my original post in the forum "" In the basic and wide module as wel as in the content plugin one can select to list only events in the future.

I would like to obtain the same but from clicking on the list by category link or the list by location link in de display of a single event

With the current software (4.2.0) those links show all non-archived events in the database and that can be a very long list. I could work around that by archiving events within a shorter period but that has the unwanted side-effect that the visitor cannot see the past events in the kalender module.

Would a custom ccs be able to accomplish this ? If not, maybe via new feature request ? ""

mckillo commented 2 months ago

@jojo12 This feature is in this commit. Now in the calendar menu, can select 'Yes' if the admin also wants to see the archived events in the calendar, categorycal and venuecal views.

image

See the last commit below and tell me if it was this and works,

jojo12 commented 2 months ago

Setting is: Archive events after 1 day. The new menue point is set to yes The menue is fine. The new menue point is set to yes. Clean cache open calendar: now archived events are NOT displayed! EDIT: the same in categorycal and in venuecal EDIT2: there is a weekcal too!

mckillo commented 2 months ago

Thanks for testing and weekcal view add too (see last commit). Tell if it works you

mckillo commented 2 months ago

@jobrusche Could you tell me more details about your case (example)?

jojo12 commented 2 months ago

I have general JEM settings =archive past events (after 1 day). This works best. In backend and in frontend the eventlists are like that: the actual event is at top of the list Normal in calendar I see the whole month, but events only from today until end of month. I would like to see all events of the month (the past events the event today and upcoming events..) Until now this was not possible. (Only when I set general JEM to: do nothing with past events, the calendar is, like I would have it! But testing now, nothing changed, All past events are hidden.

mckillo commented 2 months ago

This could be the option that you want in the eventlist view:

image

mckillo commented 2 months ago

Right? It is just a draft.

jojo12 commented 2 months ago

I think, you forgot to add the eventslist.xml (there's only the model)

mckillo commented 2 months ago

It's a draft, I can't upload XML....I have to dev the rest of code (filter to the query). But is it right?

jojo12 commented 2 months ago

There were posters (perhaps because of the hidden past events in the calendar. When you decide not to archive, then you serarch in a long list in frontend and backend for the right event. For me, who preferes to archive, it is enough to see in calendar the past events too. So if you want to give others this possibilities, go on!

mckillo commented 2 months ago

Maybe it's my mistake, mixing two views in this case, but I don't understand. Do you mean the calendar or ceventlist view? Maybe it's my mistake, mixing two views in this case, but I don't understand. Do you mean the calendar or the list of events? If you can be more explicit, it would be appreciated, to correctly imagine the solution :-) it's monday.

mckillo commented 2 months ago

Other solution can be: Show list events from “X” days ago. The admin writes the X, X is the number of days. This way it is more simplified and customizable, it could be 365 days ago (last year).

In the calendar views, it is not necessary. Whether to show archived events set (includes past non-archived assets as well).

jojo12 commented 2 months ago

I think, the users wishes comes from different settings: 1st setting in general JEM settings: todo with past events->archive then there's the "strange" thing in calendar: you only see upcoming events. All earlier than today is empty. This gives the feeling, that this event organisator has only events from today on (so he must have not much experience with events!). In this situation the wish is to see all events in calendar.

2nd setting in general JEM settings:todo with past events->nothing then past and upcoming events are visible in calendar. Here it is fine. But then in backend and frontend event list all past and upcoming events are visible and they are in ascending order. So on top you may have an event from years ago!! And you have to search for todays or next upcoming events. The same is, when you order descending, then you see an event far in the future and you have to search for today! Both is not ideal! If this general JEM setting is chosen, then it needs something like a button or else which leads directly to @today.

The 3rd setting in general JEM settings:todo with past events->delete doesn't help in these cases.

[For frontend eventslist there is an other feature request: is it possible to show borders between the different months: e.g. between the last event in february and the first event in march, there is a line where's a text "March". This would help for quicker orientation in event list. But this feature request does not belong to the feature request here, in my eyes. I will put this in a separate issue! see #1744]

mckillo commented 2 months ago

1st setting is solved with new option "Show archived events"=Yes, see all events in the calendar, right?

2nd setting will be solved with the other new option "Show list events from", so, you see the list events from x time to the end. To avoid a large list upcoming events, we need to define the "Show list events until" for upcoming events (with options in oppositive direction, right? or define a filter options by day "Show events from X days ago and until Y days from now" (X, Y: Number)

mckillo commented 2 months ago

Give me a moment and I'll make you a draft

jojo12 commented 2 months ago

1st setting: yes. 2nd setting: I am not sure, perhaps I've not enough imagination ;-)

mckillo commented 1 month ago

image Can it be a solution for the 2nd setting? The admin can be set the number of days (before and after) to filter events to the list. By default, these values are 0, it means, from today to infinite (like now, upcoming events).

jojo12 commented 1 month ago

I think: yes. But this is for others, not for me!