Flarum Discussion Templates
A Flarum extension. Create per-tag templates for new discussions. This extension depends on the tags extension.
Please note that the composer is not currently available in the admin area. If you want to preview how a template with markdown/BBCode looks, I recommend typing it up in the forum discussion area and copy-pasting the contents to the discussion template textarea.
Installation
Use Bazaar or install manually with composer:
composer require askvortsov/flarum-discussion-templates
Screenshots
VIdeo In Action
A few things that weren't clear from the video:
- Switching to a tag with a different template will only replace the content if you have not interacted at all with the composer. If you have added/deleted/etc text, the new template will not be applied
- Templates only work with primary tags, and will only be applied if a discussion has ONLY ONE primary tag. If a discussion has a child tag, that child tag's template (if existent) will be applied, otherwise, the parent's template will be applied.
Updating
composer update askvortsov/flarum-discussion-templates
Links