Hi this is a wonderful feature for discourse but can we limit the number of times it appears overall in a single thread topic? If we have a discussion post asking shopify vs woocommerce then the entire thread will be occupied by the hyperlinks whenever someone mentions any of these. ![]()
We can definitely add a theme setting for this, PR welcome. I think a default limit of 3 auto links per word makes sense as a good initial default.
This feature has already been discussed couple posts above…tl;dr probably not so easy to implement.
Is there any way to disable linkify in a specific category? In my case I have a blog category which contains content from a wordpress installation. Hence I don’t want linkify to be active there.
Sure, that shouldn’t be hard I think. I can have a look. If there’s more people intereted in this feature, I’ll submit a PR with a new theme settings. If not, I can just post a code snippet that you can include into your theme manually. I’ll try to have a look next week.
Hey @sam
are there any news on this? I tried to search if there are any plans to improve the management of “lists” in theme settings but could not find anything
This is already implemented. What you see in linkify settings IS the new list management. ![]()
Thx for the note, that clarifies it ![]()
That “new” list already a great improvement!
Yet for large lists it’s still a bit of a hassle
I think an import/export feature for a simple CSV would make make a huge improvement there
Or simply pointing to a CSV URL which is pulled let’s say every 24h. or by manually by clicking a button
您能否添加一个选项,使关键词在一个主题或回复中仅插入一次?
目前它会在主题中显示每个关键词。
如果您希望每个帖子中只显示一次,可以将链接词作为正则表达式输入,例如:
/WORD/,URL
若要在每个主题中仅显示一次,则较为复杂,请参阅上方的讨论。
谢谢。现在可以了。
我想移除 FA4,但目前 linkify 依赖它。
有没有办法在链接前添加一个 SVG 图标?
我在 Discourse 上曾启用过自动链接功能,但后来决定将其移除,因为只要提到 Discourse 就会生成链接,导致单个话题中出现过多的链接。有时,不相关的链接反而比没有链接更糟糕。
不过,这个组件其实有一个很好的使用场景,例如将 ISBN 号自动链接到 inventaire.io 上的图书详情页面:
/isbn:([0-9]{13})/,https://inventaire.io/entity/isbn:$1
你是什么意思?Linkify 主题并不依赖 FA 图标。
我知道。但我正在使用 FA4 为 linkify 链接添加图标。对于 FA5,我不知该如何实现。
为链接添加提示框是否是一个简单的改进?
这样我们就可以将输入设置为:
关键词, 链接, 提示文本
也许你需要的正是 abbrify 插件?
不太确定它们如何协同工作,你可能需要进行一些小的定制才能使其正常运行。如果需要,我可以帮忙。
我目前通过修改脚本并添加一行代码解决了这个问题。现在它会将目标 URL 作为链接标题附加。效果非常好。
我的 linkify 设置中有一个相当长的条目列表。有什么方法可以导出整个列表吗?点击导出按钮时,只导出了默认列表。
你好 @jrgong
你可以通过 Data Explorer 插件查询获取所有内容 ![]()