I am trying to utilise the Calendar Plugin, but it deletes the event from the calendar after it happens despite the fact that the settings are set to -1 to disable the deletion. I’ve also tried setting the expiry to two years (17532hrs) and that also removed the event straight after it happened.
The only way I’ve found to keep the events in the calendar is to remove the end time/date.
Does anyone know why the -1 doesn’t work, and what the solution is?
I haven’t got an event-style one as a category header yet, so I have a feeling it may be that one…
Actually, let me double-check the end times…
Yes, it appears adding an end time will make the event disappear from the /upcoming-event calendar, which does seem to be at odds with the other calendar behaviour. I think we should slide this over to the #bug category and see if we can get someone to look at it.
(and, just to be thorough, the non-event-style calendar is working as expected, even with end dates included)
If you’re referring to the setting delete expired event posts after, I think it prevents the deletion of the post, but not the display of the event, plus I think the term event here is misleading, it’s in the calendar section so I think it means more “date related thing” than “event in the rsvp-possible sense”.
that’s a calendar-event, not an event-event
event-events are meant to be displayed in /upcoming-events hence nothing in the past…
I couldn’t decide if the quirk was that it did show past events as long as they didn’t have an end time, or that it didn’t show the ones with an end time. It perhaps may be something I could include in the plugin topic rewrite if it’s a case of expectation versus actual behaviour?
You can create a regular calendar by adding the following to the OP of a topic: (with calendar enabled checked)
And then all of the following posts with a description and date will get added to it. eg:
It's my birthday!
[date-range from=2022-12-20 to=2020-12-21 timezone="America/Boise"]
You can then grab a category id of where you want to display it more prominently from the end of the category URL, and the post id of the calendar topic (you can get this from the json) and add it to this setting:
The calendar item posts in these topics are the ones controlled by the delete expired event posts after setting.
There’s more detailed info in the Discourse Calendar topic, though if you need extra help feel free to spin up a new #support topic too.
Actually, this seems like a good juncture to slide this topic over to #support for its forever home now we know that the setting is working as expected. After I’ve updated the Calendar&Event literature it may be worthwhile creating new #ux or #feature topics to cover any missing ideas.
But yes, the only way to retain event-style items in the event-calendar/upcoming-events currently is to remove their end date. I wondered if another workaround to achieve something similar could be to create a ‘Past Events’ or ‘Event History’ calendar topic using calendar items? I’m not sure if that would be suitable for you, but may be worth an explore?