Adds the ability to create a dynamic calendar in the first post of a topic.
Go to file
Frank 6820f7a433
Feature/sort by event start date (#320)
FEATURE:
 - Added custom fields `sort_topics_by_event_start_date` and `disable_topic_resorting`
 - Sort topics of event categories by event start date. Event categories have custom field `sort_topics_by_event_start_date` set to true.
 - Disable re-sorting of categories with custom field `disable_topic_resorting`
 - Event date displayed beside the Topic title can optionally be set to show the local date-time, instead of relative date-time.
 -
2022-09-23 06:02:48 +08:00
.github/workflows DEV: Update CI workflows (#289) 2022-06-17 21:33:43 +02:00
app FEATURE: allow for longer event title names 2022-08-12 11:18:50 +10:00
assets Feature/sort by event start date (#320) 2022-09-23 06:02:48 +08:00
config Feature/sort by event start date (#320) 2022-09-23 06:02:48 +08:00
db DEV: Promote old post-migration to a pre-deploy migration (#301) 2022-07-25 11:51:42 +01:00
jobs FIX: delete event posts not automatic holidays (#292) 2022-07-01 11:02:19 +02:00
lib FIX: Reintroduce holiday sub-regions removed due to consolidation (#315) 2022-09-01 11:20:28 +00:00
public/javascripts DEV: more explicit filename 2018-12-27 19:48:30 +01:00
spec Feature/sort by event start date (#320) 2022-09-23 06:02:48 +08:00
test/javascripts Feature/sort by event start date (#320) 2022-09-23 06:02:48 +08:00
vendor/holidays FIX: A typo in #321 (#322) 2022-09-20 11:06:31 +02:00
.discourse-compatibility DEV: Use `discourseLater` (#309) 2022-08-14 17:30:33 +02:00
.eslintrc DEV: adds eslint config support 2019-12-30 15:24:06 +01:00
.gitignore DEV: apply coding standards (#59) 2020-09-04 13:22:32 +02:00
.prettierignore DEV: Fix path 2020-09-25 12:00:01 -05:00
.prettierrc DEV: apply coding standards (#59) 2020-09-04 13:22:32 +02:00
.rubocop.yml DEV: Move to rubocop-discourse. 2020-05-06 17:56:08 +02:00
.template-lintrc.js DEV: apply coding standards (#59) 2020-09-04 13:22:32 +02:00
Gemfile DEV: Move to rubocop-discourse. 2020-05-06 17:56:08 +02:00
Gemfile.lock Build(deps): Bump rexml from 3.2.4 to 3.2.5 (#127) 2021-05-02 17:10:30 +02:00
LICENSE first commit 2018-06-06 15:24:56 +02:00
README.md DEV: Enhance holiday updates workflow documentation (#316) 2022-09-12 02:42:52 +00:00
package.json DEV: Fix imports (#242) 2022-03-06 21:16:50 +01:00
plugin.rb Feature/sort by event start date (#320) 2022-09-23 06:02:48 +08:00
translator.yml DEV: Add Crowdin support (#84) 2020-12-22 13:08:54 +01:00
yarn.lock Build(deps): Bump async from 2.6.3 to 2.6.4 (#258) 2022-04-29 18:01:28 +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

Customisation

Plugins

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
bundle exec 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
bundle exec rake javascript:update_constants