# 分类页面插件

**URL:** https://meta.discourse.org/t/category-page-plugin/104850
**Category:** Plugin
**Created:** [2018年十二月21日 16:44 UTC](https://meta.discourse.org/t/category-page-plugin/104850 "2018-12-21T16:44:15Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [2018年十二月21日 16:44 UTC](https://meta.discourse.org/t/category-page-plugin/104850/1 "2018-12-21T16:44:15Z")

</div>

# 分类页面插件

更改分类页面以满足您的需求（一种选项）…

_功能说明：_ 完全更改此页面的设计。（显示本周最佳作者和热门话题）

`https://github.com/Toxuru/discourse-category-home`

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/4/4/c44b821e92e0c4e1a07b1e4beddf9ef7ad883e1c.png)

语言：英语、俄语

分类中的附加字段：

- categorimg - 分类页面上使用的第二张图片
- categordiscr - 分类的简短描述

 ![toxu-cat-2](https://global.discourse-cdn.com/meta/original/3X/f/4/f42ae7170027be7aa7ff205646c7ce4ede9bf5a8.png)

 ![2](https://global.discourse-cdn.com/meta/original/3X/f/f/ff8072ca884fa74332c8995506aa92483e186608.png)

## 自定义

`desktop category page style` - 分类与最新话题

这是一个相当非标准的插件，需要一些预备操作。您必须填写将在该布局中使用的分类中的附加字段。

过一段时间后，我将尝试简化实现方式，使其无需此类操作即可使用。也许这段代码会有所帮助。

_不适用于移动版本！_

安装 Discourse 插件 - [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-a-plugin/19157)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年十二月22日 00:55 UTC](https://meta.discourse.org/t/category-page-plugin/104850/4 "2018-12-22T00:55:21Z")

</div>

Does this really need to be a plugin? Shouldn’t it be a theme component cc @sam @johani?

---

<div class="post-metadata">

### Author: ![protesqu](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@protesqu](https://meta.discourse.org/u/protesqu)
#### Post date: [2018年十二月22日 16:18 UTC](https://meta.discourse.org/t/category-page-plugin/104850/5 "2018-12-22T16:18:16Z")

</div>

Smooth and comfortable. Thank you for sharing, it is much appreciated!

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2018年十二月24日 07:24 UTC](https://meta.discourse.org/t/category-page-plugin/104850/6 "2018-12-24T07:24:13Z")

</div>

Most of the changes can be done in a theme component. The biggest blocker is the excerpts. Those still require a plugin.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年十二月25日 07:01 UTC](https://meta.discourse.org/t/category-page-plugin/104850/7 "2018-12-25T07:01:52Z")

</div>

The plan is to allow you to opt for excerpts somehow as a theme component.

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [2019年一月2日 08:59 UTC](https://meta.discourse.org/t/category-page-plugin/104850/8 "2019-01-02T08:59:17Z")

</div>

hi, any chance this becomes a theme in near future? i.e. the possible blocks minus the excerpts.

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [2019年一月2日 10:33 UTC](https://meta.discourse.org/t/category-page-plugin/104850/9 "2019-01-02T10:33:45Z")

</div>

I will try to make this plugin a theme soon.

---

<div class="post-metadata">

### Author: ![th21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th21/32/211915_2.png) [@th21](https://meta.discourse.org/u/th21)
#### Post date: [2021年七月16日 01:21 UTC](https://meta.discourse.org/t/category-page-plugin/104850/11 "2021-07-16T01:21:02Z")

</div>

这个插件有没有被做成主题？

---

<div class="post-metadata">

### Author: ![Zup](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@Zup](https://meta.discourse.org/u/Zup)
#### Post date: [2021年九月6日 23:08 UTC](https://meta.discourse.org/t/category-page-plugin/104850/12 "2021-09-06T23:08:00Z")

</div>

有什么进展吗？看起来最新的 Discourse 版本并没有带来任何变化：confused:

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [2021年九月7日 04:38 UTC](https://meta.discourse.org/t/category-page-plugin/104850/14 "2021-09-07T04:38:27Z")

</div>

很遗憾，我将无法继续开发此插件。这主要是因为我居住地的限制，缺乏开发环境，且我的笔记本电脑性能较弱，仅能处理 CSS 和 PHP 脚本。

您可以克隆该仓库，或尝试优化此方案，使其更简便。我相信这是可以做到的。
