「推奨トピック」から特定の分類またはサブ分類を非表示にする方法

Hi everyone,

I’m running a Discourse forum for photographers and I have one category named “intro” with inside a sub-category named “introduce-yourself” where people can post a new topic and say hello. Those are not shown on the “latest” in order not to spam the front page of the forum.

But they still appear in “suggested topics” under other posts. How can I hide them and prevent them from appearing into “suggested topics” site-wide?

Example here:


(you might want to refresh the page a couple time, as suggested topics change at each refresh)

Thank you for your help!

Try something like:

#suggested-topics .topics .topic-list-item.category-introduction-introductions.ember-view {
    display: none;
}
「いいね!」 3

Awesome, it worked! Of course it’s just hiding them visually so sometimes when it suggest me only this category then the suggested topic list will look empty but that’s fine. Thanks for helping!

You can set each category to show the suggested topics in all categories or only in that category in which the topic was written. If you get the “introduction” category so that the suggested topics are also from other categories, you will hardly remain without visible suggested topics.

Of course, the change is just a visual hack, if, for some reason, the suggested topics are only in the “introduction” category you will remain without any visible topic, as you said.

「いいね!」 3

この設定が見つかりません(少なくとも今は?)または意図した通り機能していないようです :thinking:

サイト設定「カテゴリに提案を制限」は、デフォルトでオフになっています。現在のカテゴリに提案トピックを制限しようとしていますか?

アバターが怖いです :scream:!

「いいね!」 2

トピックに即したカテゴリと、「購入希望」「売却希望」「トピック外」という3つのカテゴリがありますが、これらは提案から除外したいと考えています。トピックに即した議論は相互プロモーションに活用できると考えますが、非常に活発な中古カテゴリは既によく見られるため、他のトピックをリストから押しやってしまう傾向があります。

トピック外のカテゴリについては、トピック外の議論を discouraged する意図は一切なく、単に元の文脈への注目を維持したいという理由で非表示にしたいと考えています。

とはいえ、トピックに即した分類が細かすぎるのではないか、例えばタグを使用するべきではないかという疑問も残ります。大きな変更や再編成を行う前に、この点に関するご意見やベストプラクティスを伺いたいです :thinking:

いいえ、そうではありません :joy:

これを掘り起こします!提案トピックのうち、オフルトピックカテゴリから2つ/5つが発生することがあり、これを除外したいと考えています。今のところ、ユーザーの反応を見るために「suggested to category」設定を有効にしました。

しかし、提案トピックに特定のカテゴリが完全に表示されないようにする機能があると素晴らしいでしょう。

「いいね!」 2