# 按计划的 Topic-timer 日期，以日历形式显示类别

**URL:** https://meta.discourse.org/t/display-a-category-as-a-calendar-by-scheduled-topic-timer-dates/296752
**Category:** Feature
**Created:** [2024年二月26日 13:39 UTC](https://meta.discourse.org/t/display-a-category-as-a-calendar-by-scheduled-topic-timer-dates/296752 "2024-02-26T13:39:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [2024年二月26日 13:39 UTC](https://meta.discourse.org/t/display-a-category-as-a-calendar-by-scheduled-topic-timer-dates/296752/1 "2024-02-26T13:39:50Z")

</div>

这是否可以作为主题组件实现？

我想将一个类别显示为日历；7天作为一行，从今天到最远的未来计划发布日期。在日历网格中直观地显示主题，显示它们被设置为发布到的类别。在某个地方/某种方式显示所有没有设置主题计时器来发布它们的主题列表。

这样我就可以有一个类别（类似于普通的员工类别），只有我/员工用户可以看到，以便我们可以协调创建和安排主题的发布。

@manuel

---

<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: [2024年二月26日 13:47 UTC](https://meta.discourse.org/t/display-a-category-as-a-calendar-by-scheduled-topic-timer-dates/296752/2 "2024-02-26T13:47:10Z")

</div>

我能想到的最接近的是日历插件，但它会在主题的帖子上方显示一个日历，帖子是日历中显示的事件条目。

> [@Discourse Calendar (and Event)](https://meta.discourse.org/t/discourse-calendar-and-event/97376):
>
> discourse2Summary Discourse Calendar and Event adds dynamic and interactive calendar and event features to your Discourse site.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Enabling Calendar (and Event) The Calendar plugin can be enabled either by the toggle or from its settings, both accessible from your admin/plugins page: [/admin/plugins] Features Somewhat unsurprisingly, Discourse Calendar …

将类别页面本身重新构想为日历需要进行一些严肃的自定义 Discourse 主题开发和模板覆盖。

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [2024年二月26日 14:07 UTC](https://meta.discourse.org/t/display-a-category-as-a-calendar-by-scheduled-topic-timer-dates/296752/3 "2024-02-26T14:07:39Z")

</div>

（由于我是在 Discourse 本身托管的，因此插件是不可行的。）

我想到的下一个最佳选择是询问……

主题组件能否提供新的排序方法？如果主题计时器是用于发布到某个类别的计时器，则按该计时器计划的日期进行排序。并且它必须在主题列表中显示主题计时器信息。并且它必须在视觉上区分没有主题计时器的主题（因为以这种方式显示的类别是为了培育所有最终会发布的主题而设计的。）

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [2024年二月26日 14:59 UTC](https://meta.discourse.org/t/display-a-category-as-a-calendar-by-scheduled-topic-timer-dates/296752/4 "2024-02-26T14:59:06Z")

</div>

嘿 @craigconstantine 👋🏽 在开发方面会有比我更有资源的人…但总的来说

- 你可以用一个组件添加一个新的排序列。例如，请参阅 [添加类别列](https://meta.discourse.org/t/add-category-column/103893) 组件。
- 你需要的值（topic-timer、destination-category）应该已经可以从数据库中获取。所以你可以通过组件访问它们。

所以我想一个蓝图方法可以是：

- 使用标准的 [共享草稿类别](https://meta.discourse.org/t/shared-drafts-allow-staff-to-collaborate-on-posts-before-publishing/83493)
- 有一个组件可以自定义主题列表，使其可以按目标类别和主题计时器排序（也就是说，放弃日历视图，采用议程视图）
