# 如何通过用户界面显示按发布日期排序的主题？

**URL:** <https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945>\
**Category:** Feature\
**Created:** [2023年七月18日 07:59 UTC](https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945 "2023-07-18T07:59:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)\
**Post date:** [2023年七月18日 07:59 UTC](https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945/1 "2023-07-18T07:59:41Z")

</div>

对于某些类别和标签（例如 #Announcements 和 #new-feature），我希望有一个视图，其排序取决于第一篇帖子的日期。  
此功能是否可用？

---

<div class="post-metadata">

**Author:** ![anon65426961](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@anon65426961](https://meta.discourse.org/u/anon65426961)\
**Post date:** [2023年七月18日 08:03 UTC](https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945/2 "2023-07-18T08:03:43Z")

</div>

看起来这里有一个方法：

> [@Display posts by date of creation](https://meta.discourse.org/t/display-posts-by-date-of-creation/217211/2?u=wombat):
>
> yoursiteurl/latest?order=created

还有一个“最新”类别，显示最近发布的帖子，但你可能已经知道了。

---

<div class="post-metadata">

**Author:** ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)\
**Post date:** [2023年七月18日 08:09 UTC](https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945/3 "2023-07-18T08:09:59Z")

</div>

> [@按创建日期显示帖子，post:2](#):
>
> nyoursiteurl/latest?order=created

不错。用户界面是否也提供此功能？

---

<div class="post-metadata">

**Author:** ![anon65426961](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@anon65426961](https://meta.discourse.org/u/anon65426961)\
**Post date:** [2023年七月18日 08:14 UTC](https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945/4 "2023-07-18T08:14:11Z")

</div>

据我所知没有，但也许老板们可以设置它正常工作。

看起来有几个人问过这个问题，团队成员可能知道答案。

> [@Sorting topics by creation date](https://meta.discourse.org/t/sorting-topics-by-creation-date/41049/4?u=wombat):
>
> Try: https://meta.discourse.org/?tags=docker&order=created\_at Note, closing this … cause I feel like the OP is solved

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2023年七月18日 08:20 UTC](https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945/5 "2023-07-18T08:20:51Z")

</div>

据我所知，不会，这需要一个主题组件才能将其添加到某个地方。

以下是可用的查询字符串列表：

> [@Using query strings to filter topic views](https://meta.discourse.org/t/use-query-strings-to-filter-topic-views/248224?u=canapin):
>
> bookmark This guide explains how to use query strings to get custom filtered topic views on any Discourse site. Query strings can be used by all users to view specific lists of topics, create custom links to unique topic lists, and search for topics meeting specific criteria. person_raising_hand Required user level: All users Query strings are text that you can append to the end of most Discourse URLs to get a custom, filtered view of topics. They can be useful for viewing specific lists…

有关更高级的过滤，有一个 `/filter` 实验性路由：

> [@Experimental topics list filter feature](https://meta.discourse.org/t/experimental-topics-list-filter-feature/263641?u=canapin):
>
> We have recently introduced an innovative [/filter](https://meta.discourse.org/filter) route, enabling more sophisticated filtering of the topics list. Significantly, this marks the initial step towards a unified topic filtering language for both search and filtering. Additionally, the dedicated route for topic list filtering enhances the customizability of the sidebar, as users can now incorporate links as [custom section links](https://meta.discourse.org/t/custom-sidebar-sections-being-tested-on-meta/255303) within the sidebar. How to turn it on Enable the experimental\_topics\_filter site settings in the admin i…

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2023年七月18日 08:37 UTC](https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945/6 "2023-07-18T08:37:36Z")

</div>

您可以在“分类扳手”的“设置”选项卡中为分类设置此项：

 ![按主题列表排序](https://global.discourse-cdn.com/meta/original/4X/0/c/0/0c0a4ae05f16840f3c8a74057d42b8697970bfeb.png)

不过，对于标签，我认为您仅限于 URL 过滤器。

---

<div class="post-metadata">

**Author:** ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)\
**Post date:** [2023年七月18日 08:51 UTC](https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945/7 "2023-07-18T08:51:38Z")

</div>

🙄 啊，由于发布到 fediverse，第一篇帖子无法再更改。

这是我打算进行的编辑：

* * *

对于某些类别和标签（例如 #Announcements 和 #new-feature），我希望有一个视图，其排序取决于第一个帖子的日期。

已有以下解决方案：

> [@Using query strings to filter topic views](https://meta.discourse.org/t/use-query-strings-to-filter-topic-views/248224):
>
> bookmark This guide explains how to use query strings to get custom filtered topic views on any Discourse site. Query strings can be used by all users to view specific lists of topics, create custom links to unique topic lists, and search for topics meeting specific criteria. person_raising_hand Required user level: All users Query strings are text that you can append to the end of most Discourse URLs to get a custom, filtered view of topics. They can be useful for viewing specific lists…

> [@Experimental topics list filter feature](https://meta.discourse.org/t/experimental-topics-list-filter-feature/263641):
>
> We have recently introduced an innovative [/filter](https://meta.discourse.org/filter) route, enabling more sophisticated filtering of the topics list. Significantly, this marks the initial step towards a unified topic filtering language for both search and filtering. Additionally, the dedicated route for topic list filtering enhances the customizability of the sidebar, as users can now incorporate links as [custom section links](https://meta.discourse.org/t/custom-sidebar-sections-being-tested-on-meta/255303) within the sidebar. How to turn it on Enable the experimental\_topics\_filter site settings in the admin i…

可以通过类别配置调整排序的预设：

> [@JammyDodger](#):
>
> 对于类别，您可以在“类别扳手”的“设置”选项卡中进行设置：
> 
> ![Topic List sort by](https://global.discourse-cdn.com/meta/original/4X/0/c/0/0c0a4ae05f16840f3c8a74057d42b8697970bfeb.png)

如何在 UI 中将其作为“筛选选项”提供？

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2023年七月18日 09:28 UTC](https://meta.discourse.org/t/how-to-show-topics-ordered-by-date-of-publishing-via-user-interface/271945/8 "2023-07-18T09:28:13Z")

</div>

> [@thoka](#):
>
> 如何通过用户界面将其设置为“筛选选项”？

如果你的问题是“如何在一个主题组件中实现这一点”，我认为应该在 #Dev 中提问。 🙂
