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. - |
||
---|---|---|
.github/workflows | ||
app | ||
assets | ||
config | ||
db | ||
jobs | ||
lib | ||
public/javascripts | ||
spec | ||
test/javascripts | ||
vendor/holidays | ||
.discourse-compatibility | ||
.eslintrc | ||
.gitignore | ||
.prettierignore | ||
.prettierrc | ||
.rubocop.yml | ||
.template-lintrc.js | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
README.md | ||
package.json | ||
plugin.rb | ||
translator.yml | ||
yarn.lock |
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 startsdiscourse_post_event_event_started
this DiscourseEvent will be triggered when an event startsdiscourse_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