Arkshine is experiencing an issue where the calendar in a category does not show events, despite the event field being present in the post data. The calendar_details field is empty.
Arkshine asks if the official plugin is still supported and if the issue has been acknowledged.
simon confirms the plugin is supported and that he is experiencing the same issue.
techAPJ initially can’t reproduce the issue but later realizes the problem is with events not being picked up by the [calendar][/calendar] syntax.
Benjamin_D suggests that events are not supposed to be picked up by the calendar syntax, but rather by the /upcoming-events route.
joffreyjaffeux confirms that the feature has never supported showing events in categories, only dates. He might add support for showing upcoming events in a category header in the future.
Gawain expresses disappointment, as he was hoping to use the calendar to show upcoming events in a category.
I was playing with the plugin and it would seem that the calendar doesn’t show the events when displayed in a category.
The reason seems to be the calendar_details field being empty in the post data.
You can see in the second screenshot, the post is well loaded, the event field is present, but calendar_details empty.
If supported, is it possible to reply whether this issue has been acknowledged, please?
It’s going to be quite frustrating to see my post randomly deleted in 15 days, which I took time to make it as complete as possible, and not knowing what’s happening.
Yes it is. I’m running into the same issue as you are when trying to attach a calendar to a category. The calendar is displayed, but it doesn’t contain any events. I’m seeing the same messages in the logs as you are, and no errors in the browser’s console. We’ll find someone on the Discourse team to debug what’s going on.
@Arkshine note that the calendar categories settings asks for postId. Are you sure you’re providing Calendar topic’s first post ID and not the topic ID?
I’m not sure [calendar][/calendar] is supposed to pick up events, dates yes, events . When I say supposed to, I mean I don’t recall ever seeing it . As you mentioned, events are picked up in the /upcoming-events route.
It would probably be a nice feature though.
OK so I had a look at this, @techAPJ is right, this feature has always been about [calendar][/calendar] never about events.
There has never been any support of showing events in categories. I’m sorry I know this is a little bit confusing as we kept everything in one plugin. But calendar and events are two different things.
I might add support for showing /upcoming-events in a category header at some point, but that’s not the priority ATM.
That’s a shame. I don’t really see much point in a blank calendar being shown in a category.
For us we were planning to have an Events Category with all discussions in the category being a particular planned event - then the calendar at the top would simply show all upcoming events in that category.
Really just wanted the calendar that’s displayed in Upcoming Events link in the menu shown in the category too.
Ah well - will hopefully be something added in future.