# 能否按类别和用户筛选主题列表？

**URL:** https://meta.discourse.org/t/can-i-filter-a-topic-list-by-category-and-user/124173
**Category:** Support
**Created:** [2019年七月28日 09:24 UTC](https://meta.discourse.org/t/can-i-filter-a-topic-list-by-category-and-user/124173 "2019-07-28T09:24:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [2019年七月28日 09:24 UTC](https://meta.discourse.org/t/can-i-filter-a-topic-list-by-category-and-user/124173/1 "2019-07-28T09:24:05Z")

</div>

您好，

请问是否有方法可以按分类和发起话题的用户来筛选话题列表？我想将此功能与话题列表预览结合，为用户生成个人作品集。

类似于分类加标签的工作方式：

`https://blenderartists.org/tags/c/artwork/modeling`

或许可以设计成类似：

`https://blenderartists.org/u/bartv/c/artwork` 的形式？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2019年七月28日 09:52 UTC](https://meta.discourse.org/t/can-i-filter-a-topic-list-by-category-and-user/124173/2 "2019-07-28T09:52:53Z")

</div>

要获取 JSON 数据：

`https://MY-SITE/topics/created-by/USERNAME?category_id=CATEGORY-ID`  
（使用分类别名同样有效）

这可能可以在现有的完整 Ember 路由中实现，但我不确定。

我尝试了一下，但没立刻找到现成的方案。您可以试试看。

---

<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: [2019年七月28日 10:25 UTC](https://meta.discourse.org/t/can-i-filter-a-topic-list-by-category-and-user/124173/3 "2019-07-28T10:25:53Z")

</div>

我认为搜索更适合这项任务

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [2019年七月28日 10:31 UTC](https://meta.discourse.org/t/can-i-filter-a-topic-list-by-category-and-user/124173/4 "2019-07-28T10:31:22Z")

</div>

我知道搜索功能可以实现，但我一直在寻找一种“技巧”，利用 TLP 创建带有平铺图片的用户作品集——而 TLP 似乎无法与搜索配合使用（或者可以？@merefield？）

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2019年七月28日 10:32 UTC](https://meta.discourse.org/t/can-i-filter-a-topic-list-by-category-and-user/124173/5 "2019-07-28T10:32:14Z")

</div>

不行。

不过，这可以通过扩展该插件来实现。

我们可以线下讨论。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年一月26日 20:18 UTC](https://meta.discourse.org/t/can-i-filter-a-topic-list-by-category-and-user/124173/6 "2023-01-26T20:18:44Z")

</div>


