# 快速添加主题标签

**URL:** https://meta.discourse.org/t/quick-add-tags-to-topic/383271
**Category:** Theme component
**Tags:** tags
**Created:** [2025年九月19日 12:32 UTC](https://meta.discourse.org/t/quick-add-tags-to-topic/383271 "2025-09-19T12:32:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2025年九月24日 04:47 UTC](https://meta.discourse.org/t/quick-add-tags-to-topic/383271/2 "2025-09-24T04:47:46Z")

</div>

此 PR 将所有先前设置替换为新的 `quick_add_tags_buttons` 设置。

这增加了添加多个按钮的功能，并提供了按类别限制每个按钮的选项。

此外，您现在可以为每个按钮更改按钮标签和标题。

例如，您可以进行以下设置：

按钮 1：

- 要添加的标签：标签 A、标签 B、标签 C
- 在类别中：ABC、DEF
- 自动关闭：是
- 多少天后关闭：2
- 按钮标签：添加 A、B、C
- 按钮标题：添加标签 A、B 和 C

按钮 2：

- 要添加的标签：标签 A、标签 D
- 在类别中：DEF、XYZ
- 自动关闭：否
- 按钮标签：添加 A、D
- 按钮标题：添加标签 A 和 D

感谢 @tobiaseigen 为此功能提供的灵感！

> <https://github.com/NateDhaliwal/quick-add-tags/pull/1>
>
> This PR adds the functionality to add more that 1 button, and also provides the …option to limit each button by category.
> 
> Furthermore, you can now change the button label and title for each button.
> 
> For example, you can have the following setup:
> 
> Button 1:
> \- Tags to add: Tag A, Tag B, Tag C
> \- In categories: ABC, DEF
> \- Auto close: Yes
> \- Close in how many days: 2
> \- Button label: Add A, B, C
> \- Button title: Add tags A, B and C
> 
> Button 2:
> \- Tags to add: Tag A, Tag D
> \- In categories: DEF, XYZ
> \- Auto close: No
> \- Button label: Add A, D
> \- Button title: Add tags A and D
> 
> This provides a much more flexible usage of this component.

---

_[View the full topic](https://meta.discourse.org/t/quick-add-tags-to-topic/383271)._
