Open jojo12 opened 2 months ago
Yes, it's possible. It isn't hard but it need time to dev.
I've been thinking about this issue and I have several options:
Which do you like? Voting accepted. Do you see any idea more about it?
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!
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 ? ""
@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.
See the last commit below and tell me if it was this and works,
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!
Thanks for testing and weekcal view add too (see last commit). Tell if it works you
@jobrusche Could you tell me more details about your case (example)?
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.
This could be the option that you want in the eventlist view:
Right? It is just a draft.
I think, you forgot to add the eventslist.xml (there's only the model)
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?
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!
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.
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).
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]
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)
Give me a moment and I'll make you a draft
1st setting: yes. 2nd setting: I am not sure, perhaps I've not enough imagination ;-)
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).
I think: yes. But this is for others, not for me!
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?