| Summary | Let you make discourse-calendar events required or prohibited for a category’s topics. | |
| Repository Link | GitHub - mariodsantana/discourse-event-policy | |
| Install Guide | How to install plugins in Discourse |
Features
This plugin allows administrators to configure event creation policies for each category, controlling whether events are:
- Allowed (optional) - Users can create events, but don’t have to
- Required (mandatory) - Topics in this category must include an event
- Disallowed (not permitted) - Events cannot be created in this category
Note: This plugin only controls events in topic opening posts (first posts). The discourse-calendar plugin already disallows events in reply posts.
Configuration
To configure event policies for a category:
- Visit the category settings (Admin > Categories > Edit Category > Settings tab)
- Scroll to the “Event Policy” section
- Select the desired policy
- Save changes
Site Settings
- event_policy_enabled - Enable/disable the plugin (default: true)
Category Settings
Each category has a new setting available:
Event Policy (event_policy_first_post)
- Controls whether events are allowed/required/disallowed in topic opening posts
- Options: Allow, Require, Disallow
- Default: Allow