0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/plugins/discourse-calendar
2026-02-25 09:42:49 -05:00
..
app FIX: Add missing checks to InviteesController and convert to services (#38023) 2026-02-25 10:58:16 +01:00
assets FEAT: combine upcoming events display for multi-day events (#37612) 2026-02-23 10:17:49 -06:00
config I18N: Update translations (#37917) 2026-02-25 09:42:49 -05:00
db/migrate FIX: event not found after being edited to earlier date (#36481) 2025-12-08 17:41:46 +01:00
jobs FIX: skip topic bump when date is in the past (#36784) 2025-12-18 21:29:06 +01:00
lib FIX: event not found after being edited to earlier date (#36481) 2025-12-08 17:41:46 +01:00
spec FIX: Add missing checks to InviteesController and convert to services (#38023) 2026-02-25 10:58:16 +01:00
test/javascripts FEAT: combine upcoming events display for multi-day events (#37612) 2026-02-23 10:17:49 -06:00
vendor/holidays FEATURE: Update US Holidays for 2026 (#37553) 2026-02-05 00:04:13 -05:00
.prettierignore
package.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00
plugin.rb FIX: calendar plugin event timezone mismatch (#37516) 2026-02-12 09:25:18 -03:00
README.md
tsconfig.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00

Discourse Calendar

Adds the ability to create a dynamic calendar in the first post of a topic.

Topic discussing the plugin itself can be found here: https://meta.discourse.org/t/discourse-calendar/97376

Customization

Events

  • discourse_post_event_event_will_start this DiscourseEvent will be triggered one hour before an event starts
  • discourse_post_event_event_started this DiscourseEvent will be triggered when an event starts
  • discourse_post_event_event_ended this DiscourseEvent will be triggered when an event ends

Custom Fields

Custom fields can be set in plugin settings. Once added a new form will appear on event UI. These custom fields are available when a plugin event is triggered.

Holidays

See an incorrect or missing holiday? Familiarize yourself with the holiday definition Syntax. Then make your updates in the vendor/holiday/definitions directory.

Generate updated holidays as follows.

cd vendor/holidays

# Generate holiday definitions
rake generate:definitions

Install the plugin and switch to the discourse root(not the plugin directory).

# Collect all holiday regions into assets/javascripts/lib/regions.js
bin/rails javascript:update_constants

Interactions with Other Plugins

You can use an element of this plugin with the Right Sidebar Blocks component. You'll want to ensure the desired route is enabled via the events calendar categories setting. In Right Sidebar Block's settings, the block name will be upcoming-events-list, and the params use this syntax, for example MMMM D, YYYY.