# 允许管理员在插件设置中设置新主题类别

**URL:** <https://meta.discourse.org/t/allow-admins-to-set-new-topics-category-in-the-plugin-settings/200644>\
**Category:** Feature\
**Tags:** rss-polling\
**Created:** [2021年八月16日 21:31 UTC](https://meta.discourse.org/t/allow-admins-to-set-new-topics-category-in-the-plugin-settings/200644 "2021-08-16T21:31:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2021年八月16日 21:31 UTC](https://meta.discourse.org/t/allow-admins-to-set-new-topics-category-in-the-plugin-settings/200644/1 "2021-08-16T21:31:12Z")

</div>

#### 简化设置订阅源类别

目前，订阅源 URL 是在 RSS 插件页面（`/admin/plugins/rss_polling`）上设置的，但订阅源项目发布到的 Discourse 类别（或多个类别）是通过在网站的“自定义 / 嵌入”页面上创建一个或多个“允许的主机”记录来设置的。理想情况下，订阅源发布到的类别（或多个类别）应能在插件页面上直接设置。

#### 是否可根据订阅源域名设置其 Discourse 类别？

这是一个问题，因为我不确定各网站是否依赖插件当前的行为，将订阅源主题发布到多个 Discourse 类别。目前，订阅源发布到的 Discourse 类别由每个订阅源项目的 `link` 属性的值决定。`link` 属性的域名会被添加到“嵌入”页面的“允许的主机”字段中。这种行为既难以解释，又要求用户直接在浏览器中加载订阅源，才能查看用于 `link` 属性的值。

上述行为的好处是，允许根据订阅源的 `link` 域名，将单个 RSS 订阅源发布到多个 Discourse 类别。我们非常希望得到使用此插件的网站的反馈，以了解他们是否依赖此行为。在处理 Discourse 的客户支持问题时，我发现通常期望使用订阅源的域名（而非订阅源项目的 `link` 域名）来设置类别。

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2021年八月17日 21:59 UTC](https://meta.discourse.org/t/allow-admins-to-set-new-topics-category-in-the-plugin-settings/200644/2 "2021-08-17T21:59:02Z")

</div>

我有一个合并请求（PR）添加了此功能：

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/1/71f565491692b77789335ea8dc735a36e163c0c8.png)

> <https://github.com/discourse/discourse-rss-polling/pull/26>

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2021年八月25日 18:04 UTC](https://meta.discourse.org/t/allow-admins-to-set-new-topics-category-in-the-plugin-settings/200644/3 "2021-08-25T18:04:18Z")

</div>


