# 创建主题时，将其设为分类的全局横幅一段时间

**URL:** <https://meta.discourse.org/t/make-topic-a-global-banner-for-n-period-of-time-when-created-in-a-category/269518>\
**Category:** Feature\
**Tags:** automation\
**Created:** [2023年六月24日 20:52 UTC](https://meta.discourse.org/t/make-topic-a-global-banner-for-n-period-of-time-when-created-in-a-category/269518 "2023-06-24T20:52:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**Post date:** [2023年六月24日 20:52 UTC](https://meta.discourse.org/t/make-topic-a-global-banner-for-n-period-of-time-when-created-in-a-category/269518/1 "2023-06-24T20:52:56Z")

</div>

这对于那些有非常重要的公告需要整个社区看到的社区来说将是极好的，无论他们身在何处。

我们集成了我们的SaaS平台的“状态页”和Discourse中的一个“分类”。当“状态页”出现事件时，会在一个“分类”中创建一个新主题，以便我们的用户能够收到通知、讨论事件等。

当自动创建此主题时，能够将其全局可见一段时间将是极好的。

---

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2023年六月24日 21:13 UTC](https://meta.discourse.org/t/make-topic-a-global-banner-for-n-period-of-time-when-created-in-a-category/269518/2 "2023-06-24T21:13:15Z")

</div>

我认为这可能通过 [Discourse Automation](https://meta.discourse.org/t/discourse-automation/195773) 插件实现 🤔

> [@Discourse Automation](https://meta.discourse.org/t/discourse-automation/195773):
>
> discourse2Summary Discourse Automation lets you automate actions through scripts and triggers. Customisation is made through an automatically generated UI.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features Easy automation of complex workflows Triggers automations at specific dates, periodically, or on specific events Provides automatically generated …

---

<div class="post-metadata">

**Author:** ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**Post date:** [2023年六月24日 21:14 UTC](https://meta.discourse.org/t/make-topic-a-global-banner-for-n-period-of-time-when-created-in-a-category/269518/3 "2023-06-24T21:14:33Z")

</div>

我一直在尝试寻找一种自动化方法，但唯一可以触发横幅主题的是时间。

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2023年六月24日 21:27 UTC](https://meta.discourse.org/t/make-topic-a-global-banner-for-n-period-of-time-when-created-in-a-category/269518/4 "2023-06-24T21:27:54Z")

</div>

如果你让每个人都关注该类别，当该类别发布内容时，他们会收到通知。

这似乎是一个边缘情况。开发插件应该不难。

看起来自动化只有“创建/编辑帖子”的触发器，所以你可以将这些更新发布到一个（也许是未列出或不可读的）主题，而不是发布到类别，或者除了发布到类别之外。

为类别中的新主题添加自动化触发器功能请求似乎是一个合理的要求。

---

<div class="post-metadata">

**Author:** ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**Post date:** [2023年六月24日 21:28 UTC](https://meta.discourse.org/t/make-topic-a-global-banner-for-n-period-of-time-when-created-in-a-category/269518/5 "2023-06-24T21:28:46Z")

</div>

默认通知的绝佳观点——我已经设置好了，但我想为未登录的用户也设置一个横幅通知。
