Adds the ability to create a dynamic calendar in the first post of a topic.
Go to file
Sam 647ba1ca7f
FEATURE: allow event editors to control list of users on the event (#614)
Previously event editors could remove people from an event but had no way
of acting on behalf of users in the event and adding them.

That meant that for events to properly show up in agenda and so on a user
must actively click a button.

In some cases (company ran events) the event manager may prefer controlling
attendance.
2024-10-14 08:59:23 +11:00
.github/workflows DEV: Update CI workflows (#376) 2023-01-10 18:03:55 +00:00
app FEATURE: allow event editors to control list of users on the event (#614) 2024-10-14 08:59:23 +11:00
assets FEATURE: allow event editors to control list of users on the event (#614) 2024-10-14 08:59:23 +11:00
config FEATURE: allow event editors to control list of users on the event (#614) 2024-10-14 08:59:23 +11:00
db/migrate FEATURE: closed events (#564) 2024-05-14 10:12:47 +02:00
jobs FIX: delete future holidays on region change (#571) 2024-05-21 16:46:07 +02:00
lib FEATURE: closed events (#564) 2024-05-14 10:12:47 +02:00
public/javascripts DEV: more explicit filename 2018-12-27 19:48:30 +01:00
spec FEATURE: allow event editors to control list of users on the event (#614) 2024-10-14 08:59:23 +11:00
test/javascripts SECURITY: Fix XSS in calendar event name (#607) 2024-09-12 10:22:05 -07:00
vendor/holidays Update Canada Civic Holiday (#594) 2024-08-02 09:40:09 -07:00
.discourse-compatibility DEV: Pin plugin for Discourse < 3.4.0.beta1-dev (#592) 2024-08-02 17:04:52 +08:00
.eslintrc.cjs DEV: update eslint, prettier and template-lint (#465) 2023-10-30 16:39:54 -03:00
.gitignore DEV: Clean up the plugin (#426) 2023-08-01 22:32:30 +02:00
.prettierignore DEV: Update eslint-config-discourse, use prettier for hbs (#365) 2023-01-04 13:44:33 +01:00
.prettierrc.cjs DEV: update eslint, prettier and template-lint (#465) 2023-10-30 16:39:54 -03:00
.rubocop.yml DEV: Introduce syntax_tree for ruby formatting (#363) 2022-12-29 13:30:41 +01:00
.streerc FEATURE: customizable event colors by tags and adjustable max rows in calendar (#482) 2023-12-01 10:10:34 -04:00
.template-lintrc.cjs DEV: Update linting (#491) 2023-11-29 18:31:03 +01:00
Gemfile DEV: Update linting (#491) 2023-11-29 18:31:03 +01:00
Gemfile.lock Bump rexml from 3.3.3 to 3.3.6 (#602) 2024-09-01 12:28:51 +02:00
LICENSE first commit 2018-06-06 15:24:56 +02:00
README.md Update README.md (#598) 2024-08-12 20:26:56 -04:00
package.json DEV: Update rubocop-discourse to version 3.8.0 (#576) 2024-05-28 11:15:47 +02:00
plugin.rb SECURITY: Fix XSS in calendar event name (#607) 2024-09-12 10:22:05 -07:00
translator.yml DEV: Add Crowdin support (#84) 2020-12-22 13:08:54 +01:00
yarn.lock Bump micromatch from 4.0.5 to 4.0.8 (#605) 2024-09-01 12:46:32 +02:00

README.md

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.