# Discourse Calendar 更新以使用 fullcalendar 6

**URL:** <https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311>\
**Category:** Announcements\
**Tags:** events\
**Created:** [2025年八月26日 09:24 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311 "2025-08-26T09:24:45Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2025年九月1日 20:42 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/21 "2025-09-01T20:42:03Z")

</div>

是的，我认为在您获得最新更新后应该可以修复。

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2025年九月1日 22:45 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/22 "2025-09-01T22:45:21Z")

</div>

> [@sam](#):
>
> 难以理解为什么 `/day/2025/09/01` 比 `/day/2025/9/1` 好这么多

因为 `/day/2025/09/01` 按字母顺序排序时会排在 `/day/2025/10/01` 之前，而 `/day/2025/9/1` 不会？

---

<div class="post-metadata">

**Author:** ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Post date:** [2025年九月2日 19:32 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/23 "2025-09-02T19:32:24Z")

</div>

我和我父亲发现“ **年份** ”页面会跳转到年初，而不是之前的周或月。在手机上，这更像是一个错误，因为点击“年份”（用于议程式视图）时会出现预期内容，但在一秒钟内页面就会重新加载到年初。

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2025年九月2日 19:36 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/24 "2025-09-02T19:36:25Z")

</div>

是的，我们将在未来努力改进这一点，我同意这并非理想状态。

---

<div class="post-metadata">

**Author:** ![gilles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gilles/32/549022_2.png) [@gilles](https://meta.discourse.org/u/gilles)\
**Post date:** [2025年九月3日 16:52 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/25 "2025-09-03T16:52:30Z")

</div>

我有一个关于活动的建议 😅  
预订时，如果可以在同一账户下选择预订的座位数，那就太好了。  
我不知道我是否说清楚了 😂

---

<div class="post-metadata">

**Author:** ![opcourdis](https://avatars.discourse-cdn.com/v4/letter/o/45deac/32.png) [@opcourdis](https://meta.discourse.org/u/opcourdis)\
**Post date:** [2025年九月4日 22:17 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/26 "2025-09-04T22:17:56Z")

</div>

如果您经常使用周期性事件，请随意为此投票，因为目前周期性事件没有自己的独立事件，每个事件只有一个主要主题，而不是在周期中为每个事件创建 1 个主题。

> [@Calendar plugin not creating topic for recurring events](https://meta.discourse.org/t/calendar-plugin-not-creating-topic-for-recurring-events/370600):
>
> Hi, Recurring events are individual events, however when you create one it does not create individual topics. So if you click on 1 of those recurring event to participate to it then your participation is present on all the events. Shouldn’t creating a recurring event create individual events/topics with the same base as the first event?

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2025年九月4日 22:43 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/27 "2025-09-04T22:43:44Z")

</div>

是的，我们将实现这一目标，这需要几个步骤，我们在过去几周已经朝着这个方向取得了很大进展。

---

<div class="post-metadata">

**Author:** ![opcourdis](https://avatars.discourse-cdn.com/v4/letter/o/45deac/32.png) [@opcourdis](https://meta.discourse.org/u/opcourdis)\
**Post date:** [2025年九月4日 23:37 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/28 "2025-09-04T23:37:56Z")

</div>

感谢您和 Sam 或任何其他为此插件付出努力的人，抱歉我们不想显得咄咄逼人地索要功能，因为这是免费的，但这个插件以其将 Discourse 的类别和主题的力量与活动组织相结合的方式极具创新性，让我们欲罢不能 😄

仅此插件就足以让 Discourse 在所有竞争对手中脱颖而出，因为其他竞争对手确实忽视了活动组织，而我们很幸运 Discourse 的开发者将其理解为建立成员们希望比在线上更了解彼此的社区的基本方面。我确信它将来会吸引越来越多的人转向 Discourse。很棒的工作！

---

<div class="post-metadata">

**Author:** ![Magie](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Magie](https://meta.discourse.org/u/Magie)\
**Post date:** [2025年九月5日 10:06 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/29 "2025-09-05T10:06:19Z")

</div>

大家好，感谢更新 💐 🍫  
不过我有两个问题 🙈

1. 就像 @nathank 一样，我想知道事件标题是否会一直被截断，还是可以换行？

 ![Screenshot with a calendar event with a cut off title](https://global.discourse-cdn.com/meta/original/4X/2/e/9/2e97960c7866ee36d3147c603c4167d10d721e81.png)

1. 我的第二个问题是关于跨越多天的事件。在总日历（位于 `upcoming-events/month/2025/9/1`）中，事件会显示为跨越多天，这是我们偏好的：

 ![Screenshot of a calendar event with an event spanning multiple days](https://global.discourse-cdn.com/meta/original/4X/e/4/c/e4c96c19eca4fd52478b9d8316410adc84480f79.png)

但在最初设置事件的类别日历中——相同的事件在月视图中看起来像单日事件。

 ![Screenshot of a calendar where events are just displayed on one day even though they span severall](https://global.discourse-cdn.com/meta/original/4X/0/2/5/025493ad3f53cdec375e391de9ed1d3393bca185.png)

所以我想知道这是故意的还是一个 bug？是否有计划在类别日历中像总日历一样显示这些事件？ 🫣

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2025年九月14日 15:20 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/30 "2025-09-14T15:20:51Z")

</div>

> [@Magie](#):
>
> 1. 像 @nathank 一样，我想知道事件标题是否会保持截断状态，还是可以换行？

它将保持截断状态，不会换行，也没有省略号。多行换行实际上是不可能的，而省略号是在视觉美观和最大文本空间之间的权衡，如果你添加 `...`，你就会失去几个字符。

> [@Magie](#):
>
> 但是，在最初设置事件的类别日历中——相同的事件在月视图中看起来像为期一天的事件。
> 
> ![Screenshot of a calendar where events are just displayed on one day even though they span severall](https://global.discourse-cdn.com/meta/original/4X/0/2/5/025493ad3f53cdec375e391de9ed1d3393bca185.png)
> 
> 所以我想知道这是故意的还是一个错误？是否有计划在类别日历中像在总体日历中一样显示这些事件？ 🫣

下一个更新应该可以修复类别日历的多日问题。

---

<div class="post-metadata">

**Author:** ![Magie](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Magie](https://meta.discourse.org/u/Magie)\
**Post date:** [2025年九月22日 09:26 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/31 "2025-09-22T09:26:07Z")

</div>

感谢 @j.jaffeux 的回答！💯

如果标题会一直被截断，我想知道我们是否可以恢复在悬停或首次单击时显示事件叠加层？我认为这样可以轻松查看具有较长标题的事件。

我的截图显示了一个标题较短的事件，但我想展示“事件叠加层”的意思：

 ![单击时带有事件叠加层的截图](https://global.discourse-cdn.com/meta/original/4X/4/1/e/41eb9fc41a4a57640067aca5170fff6d41574227.png)

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2025年九月22日 09:28 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/32 "2025-09-22T09:28:23Z")

</div>

但这已经就是这样了，不是吗？你是如何在这里显示叠加层的，一次点击？目前对我来说就是这样工作的。

---

<div class="post-metadata">

**Author:** ![Magie](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Magie](https://meta.discourse.org/u/Magie)\
**Post date:** [2025年九月22日 15:37 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/34 "2025-09-22T15:37:26Z")

</div>

@j.jaffeux 我现在已经用最新的更新进行了测试，它会在 `/upcoming-events/` 的常规日历中点击时显示事件叠加层。  
但是，它在类别日历中 **不会** 那样表现。在类别日历中，点击会重定向到包含该事件的主题。

如果两者都能显示叠加层，那就太好了。 ☺

---

<div class="post-metadata">

**Author:** ![Magie](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Magie](https://meta.discourse.org/u/Magie)\
**Post date:** [2025年十月2日 13:23 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/35 "2025-10-02T13:23:16Z")

</div>

> [@j.jaffeux](#):
>
> 您是如何在此处显示叠加层的，一次点击？这正是我目前的工作方式。

嗨 @j.jaffeux 抱歉不想惹您生气，但我们也能在分类日历中拥有这个叠加层吗？ 🐣 非常感谢 💕

---

<div class="post-metadata">

**Author:** ![Tonja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tonja/32/566727_2.png) [@Tonja](https://meta.discourse.org/u/Tonja)\
**Post date:** [2025年十月20日 13:36 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/36 "2025-10-20T13:36:09Z")

</div>

您好，Magie 提出的问题也影响到我们 🙋🏽‍♀️  
如果能在日历的子类别和主类别中都看到叠加层，那就太好了。  
由于文本已缩短，阅读起来确实更加困难。  
谢谢，我们非常感谢您的工作 🙏🏽

---

<div class="post-metadata">

**Author:** ![paulswithers](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulswithers/32/309235_2.png) [@paulswithers](https://meta.discourse.org/u/paulswithers)\
**Post date:** [2026年二月13日 15:35 UTC](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311/37 "2026-02-13T15:35:25Z")

</div>

我用这段 CSS 实现了两行显示

```plaintext
.fc-daygrid-dot-event {
    align-items: baseline;
}
.fc-daygrid-dot-event .fc-event-title {
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: calc(2 * var(--line-height-large));
    white-space: normal;
}

```

超过 2 行会使日单元格失真得太厉害（即使是两行，也会有轻微可察觉的失真）。`align-items: baseline` 确保其他值与标题整齐对齐。

使用此附加 CSS 后，标题有两行，如下所示：

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/0/2/6029c98c9f314dee09b5d784dac8177f7df4d28b.png)

请记住，这会影响到同一天有两个事件的情况，如下所示：

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/0/d/50d98ce59507be30dca3fbf0f498579c3f86e68d.png)

[上一頁](https://meta.discourse.org/t/discourse-calendar-updated-to-use-fullcalendar-6/380311.md?page=1)
