Category Event Policy

:information_source: Summary Let you make discourse-calendar events required or prohibited for a category’s topics.
:hammer_and_wrench: Repository Link GitHub - mariodsantana/discourse-event-policy
:open_book: 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:

  1. Visit the category settings (Admin > Categories > Edit Category > Settings tab)
  2. Scroll to the “Event Policy” section
  3. Select the desired policy
  4. 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