# 为群组定制的主页

**URL:** <https://meta.discourse.org/t/custom-homepage-for-groups/199623>\
**Category:** Theme component\
**Created:** [2021年八月7日 20:12 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623 "2021-08-07T20:12:05Z")\
**Posts on this page:** 6\
**Page:** 6

<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:** [2025年六月25日 14:45 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/103 "2025-06-25T14:45:50Z")

</div>

我的用例是将看板类别重定向为我的主页，这似乎与此用例非常相似，而且我不知道为什么它可能对他不起作用。这不是文明的讨论，但将特定页面作为主页似乎与 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:** [2025年六月25日 14:53 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/104 "2025-06-25T14:53:49Z")

</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:** [2025年六月25日 15:01 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/105 "2025-06-25T15:01:34Z")

</div>

> [@Lilly](#):
>
> i’m not understanding how all of those settings can work together properly,

我承认上次更新时我也非常困惑！

> [@Lilly](#):
>
> how do you stop users from changing their own homepage?

这里的代码会忽略用户设置（如果你认为这是一个 bug，那也无妨！）。所以，也许下次我再折腾它的时候，我会添加一个“遵守用户自定义主页”的设置，默认关闭，以避免改变之前的行为。

这个组件要解决的一个问题（我想这也是我写它的原因）是允许 **任何** 页面（不仅仅是 `/latest` 及其相关页面）作为主页。

---

<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:** [2025年六月25日 15:04 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/106 "2025-06-25T15:04:43Z")

</div>

是的，它确实是个非常有用的组件。等我有空的时候，我会 fork 它，然后多捣鼓捣鼓代码。

---

<div class="post-metadata">

**Author:** ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)\
**Post date:** [2025年六月26日 18:32 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/107 "2025-06-26T18:32:52Z")

</div>

添加一个侧边栏下拉菜单以切换主组，而无需进入首选项，这可能会很有趣。如果作为一项功能实现，可以提供已配置的自定义主页组列表的下拉菜单。

---

<div class="post-metadata">

**Author:** ![BrianC](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianc/32/487568_2.png) [@BrianC](https://meta.discourse.org/u/BrianC)\
**Post date:** [2025年八月6日 14:40 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/108 "2025-08-06T14:40:28Z")

</div>

在大型语言模型的协助下，我成功创建了一个插件，可以根据您指定的页面来调整主页。我正在使用 /discourse-ai/ai-bot/conversations，并用另一个页面进行了测试，效果似乎不错。

如果您想采用此插件，请随时使用。

> **[GitHub - BrianCraword/discourse-homepage-redirect: Changes homepage for logged in users to ai...](https://github.com/BrianCraword/discourse-homepage-redirect)**
>
> Changes homepage for logged in users to ai conversations page

[上一頁](https://meta.discourse.org/t/custom-homepage-for-groups/199623.md?page=5)
