用于查询已解决或未解决主题类别的 GUI

传递 solved=no&status=opensolved=yes 参数与分类结合是一个非常酷的功能。按已解决状态筛选分类主题非常简单且实用。但不幸的是,即使是高级用户也很少使用这些功能,因为他们根本记不住参数的组合,也不知道如何在 URL 中发送这些参数。

我们能否为每个分类添加一个头部按钮,以便为用户发送 URL 参数?

既然我们已有置顶列表、书签列表、我的帖子列表、最新列表,

我们能否为启用了“已解决”功能的分类创建“未解决”和“已解决”列表按钮?

在 Discourse 的早期版本中,我们能够创建带有预定义参数的自定义按钮,例如排除某个分类或仅包含某个分类。

我们能否创建一个按钮,将 solved=no&status=open 参数添加到当前分类路径中?

The Solved plugin adds a show filter by solved status site setting to Discourse. When enabled, it adds a filter for solved and unsolved topics to the navigation menu:

3 个赞

Apologies

Never see that after years
image

joooj

Looks like this feature does not wokrs,
On my categories there is dorp’n down buton.
It sends to params to addres bar in chrome or firefox but there is no filtering after that

I am on lastes version

If you refresh the page when the solved=no query param is set, does the solved topic get removed from the topic list?

1 个赞

Yes it does, Filtering works when I do refresh page with url parameters, but selecting unsolved or solved in drop and down do not refresh grid of topics.

1 个赞

If you get a chance, could you try loading your site in safe mode and see if that fixes the problem?

4 个赞

Entering in safe mod and Disable current theme did heal this bug
In safe mode drop’n down for filtering rows works as should.
Now I need time to test which theme component break this.


Any idea why I do not see filtering dop’n dow on my other instance.
There is solving enabled, I am on lastes but there is no filgtering drop n down filter

2 个赞

Thanks for testing that.

What I’m finding is that unless the allow solved on all topics site setting is enabled, the filter is not getting added to the navigation menu. This seems to be related to another issue - when allow solved on all topics is not enabled, a Solved section is added to the category settings. The checkbox in this section will not stay checked after the category is saved. We will look into what is causing this problem and get it fixed.

4 个赞

Can you try updating your site to get the latest version of the Discourse Solved plugin? The plugin has been updated to fix an issue that was preventing the solved filter from being displayed when the allow solved on all topics setting is not enabled. The filter should now be displayed for the topic lists of categories that allow solutions. The filter will still not be displayed on your site’s latest topic list unless allow solved on all topics is enabled. This is by design.

4 个赞