主题状态过滤器

:discourse2: Summary Topic Status Filter will filter topics by their “open” or “closed” status.
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-topic-status-filter
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

This theme component will help you to filter the topics by their status “open” or “closed”. It will add a dropdown filter next to the existing categories and tags dropdown. You can limit this component to particular categories using the theme setting enabled categories, else it will be displayed in all categories.

Settings

Name Description
enabled categories
Translation Default
topic_status_filter.all all
topic_status_filter.open open
topic_status_filter.closed closed

:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

Last edited by @JammyDodger 2024-06-16T08:17:05Z

Check documentPerform check on document:
29 个赞

Love it! Thanks!

It’s a real live-saver. We use Discourse as an internal project and taskmanagement system.

11 个赞

Very cool, I hate to gift you the gift of work but I wonder would you be able to do a post on meta explaining how you are using Discourse internally, what is working well for you and what needs help? We may be able to give you more ideas to help with your workflow!

15 个赞

Reply here:

Seems like it merited a new topic.

11 个赞

Can we filter group tags theme component?

Discourse already having the tags filter. What do you mean by group tags theme component? And what is the use case?

2 个赞

I think he means so the ‘open’ ‘closed’ component would work in tag-pages and tag-intersections. I second that, its something i’d love to put in our forum.

We currently just add the tag ‘backlog’ ‘sprint’ ‘doing’ or ‘done’ to show the status of a topic.

1 个赞

是否可以将此扩展到标签,而不仅仅是类别?

另外,如果可以选择默认选定的过滤器,那将是非常棒的。

您可以在标签列表中选择标签

1 个赞

但是当我通过标签进入时,我没有选择。

为了确保万无一失,此组件是否会在页面重新加载/关闭后仍保留“打开”的筛选器状态?