Search existing topics when hyperlinking

Hi everyone, if I may give you a suggestion.

When in editor and hyperlinking a word in a post, it would be a great idea to write a word/keys and dynamically search for matching topics. Because I’m finding myself linking references to other topics.

I saw a similar feature on some wordpress plugins, to easily put anchors and relate content.

20

11 个赞

This is a duplicate of some other requests:
:lock: Insert internal link like Wordpress
:lock: Fast way to link to existing topic?
:unlock: https://meta.discourse.org/t/how-about-mentioning-topic-feature/7350

You can kind of do something similar when composing by opening the header search, typing your query, using the down arrow to select the topic you want, and then hitting a to insert the link into the composer (totally recognize that it’s a power-user feature, and something in the hyperlink modal would be much more discoverable).

7 个赞

:confetti_ball: This feature has been added to core just a few minutes ago.

17 个赞

I hate to be “that guy” but I think category and tags need to appear there as well?

4 个赞

Also the closed icon/solved icon and so on like search shows. Basically the same as search, minus the excerpt in one line.

3 个赞

This has been updated, with support for categories, tags and topic status (closed/solved/pinned and so on).

11 个赞

这是 discourse 中最有用的功能之一,可以更轻松地在主题之间进行交叉链接。

一个问题:在此功能中实现跨站点搜索有多难?例如,搜索外部帮助文档站点,并允许搜索该内容并链接到它。

1 个赞

目前,这并未设置为可扩展以包含其他搜索结果。我想插件可以扩展该路由并返回其他结果,但这可能不是一个简单的更改。

我没这么想。索引技术是否可以指向插件中的另一个站点?