Hmm, my calendar categories
is showing the calendar above the category topic list, but without any events. Can anyone reproduce this?
Iâve just installed the plugin and set it up to check, and so far my âbirthdayâ is showing up in both my topic calendar and the category one:
There are a few different settings though, so my simple one may not be covering how youâve set yours up. If you can give me some specifics I can run them through my test setup to check those as well?
I am using the basic config + defaultView=listNextYear
I have given that a run-through as well, and it seems to be working okay for me. Just to confirm Iâm doing it rightâŠ
- Create topic for calender with this code in the OP:
[calendar]
[/calendar]
- Add reply to the calendar topic with an event. eg:
It's my birthday!
[date-range from=2022-08-27 to=2022-08-27 timezone="Europe/London"]
- In Calendar settings, set eg
categoryId=37;postId=1084;defaultView=listNextYear
incalendar categories
Which gives this above the category I selected to home it:
Yes that is exactly what Iâm doing. Strange it is not working for me, it did work in the past tho.
Hi @JammyDodger, Iâm running into the same problem on our companyâs staging site. I followed your steps and nothing show up.
However, when I used the Event plugin and had the events calendar categories
option turned on, and created an event within that category, it showed up just fine.
This is interesting. Iâm not sure what Iâm doing differently that makes mine show up. Did you get yours working in the end @MarcP?
I donât think calendar (category) is supposed to show events, but dates (official plugin)
Nope itâs still not working! Ended up not using it anymore.
@Benjamin_D it is. It used to work in the past. The calendar widget should be able to be displayed above a category.
I think my run-through was too simple after all. Iâll have a deeper dive and see if I can pin down what Iâm missing (and hopefully land on a fix of some sort )
You did exactly how itâs supposed to be (and worked for me in the past). Thatâs why Iâm confused about it.
I think categorization of events does work with the pavilion plugin: Events Plugin đ
Iâve never seen it work with the official calendar plugin, which had some event functionality added a few years ago.
[calendar]
is meant to display the [date]
s of its topic, thatâs why the option category calendar
asks for a postId
.
[event]
s of the whole site are only displayed in the calendar of the route upcoming-events
(which is also make with the js lib fullcalendar, as the calendar
ones )
edit: my bad, never seen this one:
So if I understand correctly, youâre trying to display the events of a particular category in a calendar with a defaultView
parameter leveraging the fact that this parameter is accepted in the calendar categories
option (but not in the events calendar categories
though) and FEATURE: add events calendar on the category page (#248) · discourse/discourse-calendar@b900276 · GitHub
If a category is present in both
events calendar categories
andcalendar categories
then priority is given tocalendar categories
hum, canât make that work, but would be nice indeed
I really donât think it is. Letâs recap:
- the official calendar plugin is twofold, calendar and event
- the calendar feature is older and meant to display holidays and various dates via the markdown
[date=....]
- the event feature (
[event ...]
)was added later and let us RSVP for instance (it can be enabled independently but is installed along the discourse-calendar plugin), events are displayed in a calendar which is not build from a[calendar] [/calendar]
markdown somewhere in a post but via a specific route:/upcoming-events
- the
calendar categories
allows us to specify options such as default view but not theevents calendar categories
these two work very differently (as far as I understand)
a categoryâs calendar for regular date exists already in some post, is retrieved and then the options are added, here
but an event categoryâs calendar is created just for the occasion, events are retrieved per category and added, but no options are passed.
To summarize, a category calendar is not supposed to display events, an event category calendar is, but doesnât allow any of the options that a category calendar allows.
Not sure if Iâm following.
I used to add events by posting text + date in a topic. It will show in the [calendar] tag in the first post of that topic.
Then the setting I screenshotted let us show that calendar on the top of a category setting. That setting describes (as seen on the screenshot): display a calendar on top of a category. It gets the calendar from a topic ID you provide and places it above the category ID you provide.
Maybe something changed with the events plugin but I never used that.
All this is unrelated to events plugin I think, because I never installed that and it used to work as described above.
Events
The plugin has an âEventâ feature, but consider it in alpha state. This works entirely differently, and creates a site-wide calendar from entries across multiple topics, rather than per-topic calendars. For more information on this see Discourse Event .
As shown here, events is related to forum wide events. Calendar is related to a topic based calendar, which is what we are talking about.
events by posting text + date in a topic
Ah yes! these are dates, events are more like this:
with that as raw:
[event start="2022-07-22 10:12" status="public" name="testegsdg" url="test" end="2022-07-22 11:12" allowedGroups="trust_level_0"]
[/event]
Exactly. Events feature is not used if that plugin is not installed. The settings I shared do show the calendar above the topic, just not the event items (or letâs call them calendar items to avoid confusion with events). While that same calendar widget shows the calendar items in the first post of the topic.
Hope that clears up what this topic is about.
letâs call them calendar items
ok, so now why doesnât it work for you?
from the screenshot above, why the X
in front of categoryId ?
The X is like disable so I can save the setting and enable it if the bug ever gets solved, without losing my settings.
Why it doesnât work is a great question. Even tried a brand new calendar in New topic to see if something was wrong with the âoldâ calendar topic.