From 0311b98ed7d926502f27a7d84b00c02b73712dc7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?=
Date: Wed, 10 Sep 2025 09:46:39 -0400
Subject: [PATCH] feat: add topic templates per category, closes #13649
---
install/package.json | 2 +-
public/language/en-GB/admin/manage/categories.json | 2 ++
src/views/admin/manage/category.tpl | 10 ++++++++++
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/install/package.json b/install/package.json
index 6a5457e093..9e94fa1ed3 100644
--- a/install/package.json
+++ b/install/package.json
@@ -97,7 +97,7 @@
"multer": "2.0.2",
"nconf": "0.13.0",
"nodebb-plugin-2factor": "7.5.10",
- "nodebb-plugin-composer-default": "10.3.0",
+ "nodebb-plugin-composer-default": "10.3.1",
"nodebb-plugin-dbsearch": "6.3.2",
"nodebb-plugin-emoji": "6.0.3",
"nodebb-plugin-emoji-android": "4.1.1",
diff --git a/public/language/en-GB/admin/manage/categories.json b/public/language/en-GB/admin/manage/categories.json
index d66dd814a1..7532cd9cd1 100644
--- a/public/language/en-GB/admin/manage/categories.json
+++ b/public/language/en-GB/admin/manage/categories.json
@@ -17,6 +17,8 @@
"federatedDescription": "Federated Description",
"federatedDescription.help": "This text will be appended to the category description when queried by other websites/apps.",
"federatedDescription.default": "This is a forum category containing topical discussion. You can start new discussions by mentioning this category.",
+ "topic-template": "Topic Template",
+ "topic-template.help": "Define a template for new topics created in this category.",
"bg-color": "Background Colour",
"text-color": "Text Colour",
"bg-image-size": "Background Image Size",
diff --git a/src/views/admin/manage/category.tpl b/src/views/admin/manage/category.tpl
index 5d3b84c639..b935638ac4 100644
--- a/src/views/admin/manage/category.tpl
+++ b/src/views/admin/manage/category.tpl
@@ -46,6 +46,16 @@
+
+
+
{category.topicTemplate}
+
+ [[admin/manage/categories:topic-template.help]]
+
+
+