mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
This adds optional metadata for template topics so the "New topic from template" button can prefill the new topic composer with a category and tags. Template authors can add this block at the start of the first post: ```md <!-- discourse-template category: todo tags: security, minor-security-fix --> ``` - the block is read from the raw post (there are safe regex limits), stripped from the composer body, and only accepted when it appears at the start of the post - category lookup respects the current user's visibility and create permissions - tags continue to go through the existing composer constraints for tagging permissions, tag limits, staff tags, and server-side validation |
||
|---|---|---|
| .. | ||
| app | ||
| assets | ||
| config | ||
| db/migrate | ||
| lib | ||
| spec | ||
| test/javascripts | ||
| about.json | ||
| package.json | ||
| plugin.rb | ||
| README.md | ||
| tsconfig.json | ||
Discourse Templates plugin
This plugin adds support for inserting a template into the composer window via a UI.
For more information please check the Official Plugin Topic & Documentation on Meta.
Installation
Follow the directions at Install a Plugin using https://github.com/discourse/discourse-templates.git as the repository URL.
Previous plugin
License
GNU GPL v2