Search before posting 🔍

Hi! :wave:t3: Newbie here and don’t know if this is the right place to post, sorry

I want to create a support community, i.e. users will be helping each other answer questions. I have seen other support communities where they make you search for answers before you can post a question. Is this possible with Discourse??

I see that Discourse has this cool wiki feature. All the more reason to have members search for posts before they post a new question.

Thank you!

2 个赞

I’m not sure if this is the best options, but you can make these with simple JavaScript.

If user search words, save them and create an sessionStorage. If he trying to create new post, check sessionStorage.

If sessionStorage contain one words from topic title (or content), allow user to create topic. Otherwise, disallow it.

1 个赞

Hi David! My suggestion would be that you spend a bit of time with the software before seeking to add features like this. You will find discourse covers this particular need in a few clever ways when starting a topic. New users get a notice reminding them about community guidelines. Any user posting will get a notice if their topic is similar to another, existing topic.

Ironically, there is a topic about just this already, which you would have found if you had searched before posting. :scream_cat:

Edit: just tried this with a new topic containing “search before posting” but the topic I linked to here did not show up in the “your topic is similar to…” popup. But using the full title worked - see screenshot for how it appears.

8 个赞

是否需要设置才能使此功能正常工作?我现在正在我们公司的沙盒中工作,但我一直能够创建重复的帖子,并且从未看到弹出窗口。

1 个赞

有一个名为 minimum_topics_similar 的站点设置,默认值为 50——这意味着如果您的总主题少于 50 个,您将看不到相似主题的消息……我怀疑如果沙盒内容不多,这很可能是罪魁祸首。

5 个赞