# 主题列表中的最高发帖摘录

**URL:** https://meta.discourse.org/t/highest-post-excerpts-in-topic-list/306734
**Category:** Plugin
**Created:** [2024年五月4日 14:20 UTC](https://meta.discourse.org/t/highest-post-excerpts-in-topic-list/306734 "2024-05-04T14:20:40Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)
#### Post date: [2024年五月4日 14:20 UTC](https://meta.discourse.org/t/highest-post-excerpts-in-topic-list/306734/1 "2024-05-04T14:20:40Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **摘要** | 将最新的帖子/回复摘录添加到主题列表序列化器 |
| 🛠 | **仓库链接** | [GitHub - dsims/discourse-highest-post: Adds highest\_post\_excerpt to serializer](https://github.com/dsims/discourse-highest-post) |
| 📖 | **安装指南** | [如何在 Discourse 中安装插件](https://meta.discourse.org/t/install-plugins-in-discourse/19157) |

  

### 功能

将主题最新帖子（即具有 `highest_post_number` 的帖子）的摘录添加到 `TopicListItemSerializer`。

### 配置

插件没有配置，但实际_看到_摘录的所有前端 UI 相关更改都在一个单独的主题组件中：[最新回复摘录主题组件](https://meta.discourse.org/t/topic-list-latest-post-excerpt/306749)。

### 待办事项

限制到特定类别和标签？

⚠ 虽然它试图做到最优，但这确实会增加额外的查询，可能会影响性能。  
⚠ “悄悄话”被排除在外，但可能还有我不知道的其他不需要的帖子。

---

<div class="post-metadata">

### Author: ![Dev\_Singh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dev_singh/32/163779_2.png) [@Dev\_Singh](https://meta.discourse.org/u/Dev_Singh)
#### Post date: [2025年十月24日 14:40 UTC](https://meta.discourse.org/t/highest-post-excerpts-in-topic-list/306734/2 "2025-10-24T14:40:34Z")

</div>

我遇到了一个安装错误：

`发生错误：导入错误：about.json 不存在或无效。您确定这是一个 Discourse 主题吗？`

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025年十月24日 14:42 UTC](https://meta.discourse.org/t/highest-post-excerpts-in-topic-list/306734/3 "2025-10-24T14:42:01Z")

</div>

您尝试将 #Customization > Plugin 作为 #Customization > Theme 或 #Customization > Theme component 安装，这是行不通的。请按照 [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-plugins-in-discourse/19157) 的说明进行操作。

---

<div class="post-metadata">

### Author: ![Dev\_Singh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dev_singh/32/163779_2.png) [@Dev\_Singh](https://meta.discourse.org/u/Dev_Singh)
#### Post date: [2025年十月24日 14:56 UTC](https://meta.discourse.org/t/highest-post-excerpts-in-topic-list/306734/4 "2025-10-24T14:56:08Z")

</div>

哦，我没注意到它是一个插件。但我不是在使用自托管网站。我的网站由 Discourse 托管。是否可以在 Discourse 托管的网站上安装此插件？我正在尝试安装主题组件 [Latest-Post Excerpt](https://meta.discourse.org/t/topic-list-latest-post-excerpt/306749)，它依赖于此插件。

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025年十月24日 15:13 UTC](https://meta.discourse.org/t/highest-post-excerpts-in-topic-list/306734/5 "2025-10-24T15:13:15Z")

</div>

这取决于您的托管计划。大多数托管套餐只允许使用默认安装的有限插件集。

---

<div class="post-metadata">

### Author: ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)
#### Post date: [2025年十月24日 16:00 UTC](https://meta.discourse.org/t/highest-post-excerpts-in-topic-list/306734/6 "2025-10-24T16:00:22Z")

</div>

> [@Moin](#):
>
> 这取决于您的托管计划。大多数托管套餐只允许使用一组有限的插件，这些插件是默认安装的。

正如 Moin 所说，您需要检查您的计划。我们社区的托管计划仅限于 #official plugins，而这个不是。

---

<div class="post-metadata">

### Author: ![Dev\_Singh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dev_singh/32/163779_2.png) [@Dev\_Singh](https://meta.discourse.org/u/Dev_Singh)
#### Post date: [2025年十月24日 16:11 UTC](https://meta.discourse.org/t/highest-post-excerpts-in-topic-list/306734/7 "2025-10-24T16:11:34Z")

</div>

我使用的是专业版套餐。在套餐详情页的附加组件部分，自定义插件没有显示对勾。我猜这意味着不允许使用，所以我将无法安装 Latest-Post Excerpt 主题组件。
