值得一提的事

The Mentionables plugin lets you establish a custom mention dataset. Custom mentions work the same as @users or #categories, but use data external to discourse, including linking to external urls.

Composer & Final Post view

This is just perfect for sets of Affiliate links. You can use Amazon or any other provider for that matter.

Administration View

Example Source

Currently google sheets is the only supported data source, however the plugin is designed to support any source. If you’d like to add a new source, please contact us.

:desktop_computer: Get the code

:page_facing_up: Read the documentation

:bug: Report a bug

Not sure how to install a plugin? Follow the steps here.

25 个赞

Can topics be filtered by mentionables? I was thinking of creating a US state dataset, so each post can be related to a state.

Not currently. How are you thinking the filter would work in an abstract sense? You can estabilsh any external dataset as a mentionables set. Perhaps you can use an additional column in the data that informs how posts with custom mentionable data would be ordered. Then you’d also need to deal with situations where mutiple mentions were made in the same post. If you scoped out the feature in some detail in an abstract sense we could get a sense of how much it would take to implement it.

Originally name was optional and could be derived from og tags - this was lost during a refactor.

I’ve pushed a fix: make name optional again · paviliondev/discourse-mentionables@a7007b2 (github.com)

1 个赞

好的,我已经完成了几个拉取请求(PR),让它恢复运行:

将 API 迁移到 Google 的官方 API,删除了一个中间 gem(以及其他几个),并添加了 CI,以便将来能更可靠地运行。

请注意设置的重大更改:

  • mentionables_google_spreadsheet_url:“Google 电子表格的 URL”

变为:

  • mentionables_google_spreadsheet_id:“Google 电子表格的 ID”

  • mentionables_google_worksheet_gids:“限制 Google 电子表格导入到工作表 GID。如果为空,将导入所有工作表。”

变为:

  • mentionables_google_worksheet_names:“范围内的源工作表(选项卡)的名称”

并且有一个新设置:

  • mentionables_google_worksheet_max_row:“扫描的最大行数”

这修复了前端(同时添加了测试)

3 个赞

看起来是个死胡同……

感谢您的报告,我已更新链接。

2 个赞

为什么这么技术化?我甚至无法设置和使用它。

如果有一个上传电子表格的按钮,像我这样的普通用户就可以使用了。

或者一个在线表单编辑器。可惜,这太高级了。

我部分同意你的看法。这个插件确实是为相当技术性的受众构建的。但只有设置比较困难,之后就相反了。

事实上,它试图通过利用 Google 表格的功能来使用一个熟悉的编辑器。

设置完成后,任何非技术人员都可以比上传文件更容易地使用该插件。

我怀疑这不适合 @frold 的用例,因为他的用例是展示由第三方网站渲染的财务图表。Mentionables 的设计初衷并非如此。

如果有人愿意通过聊天指导,欢迎联系我。

我不认为在公开论坛分享代码是安全的……

@frold 这里没有用于共享第三方图表的代码。此插件将无法帮助您。它纯粹是为了允许网站让用户搜索和调用产品列表,这些产品以灰色气泡的形式显示,并链接到每个产品页面。

1 个赞

好的 - 我以为它会在帖子中插入一个链接。

这个网址可以是图片,我以为

它会的。

不,它只是一个灰色气泡里的无聊描述 :sweat_smile:

这里再加一张截图可能会有帮助 :slight_smile:

这对于联盟链接集来说简直是完美的。

已更新 OP。

2 个赞

在进行设置和配置之前,我想确认一下 mentionables 是否适用于起草法律文件的主题,这些文件需要包含对法律和案例的引用,并且连接的“mentionables”电子表格包含相关的法律引用和判例汇编?

1 个赞

这听起来很有可能。如果你有关于积满灰尘的旧书的漂亮图片,那将会有帮助 :wink:

1 个赞

有一天,我一直想为按“+”键多次访问的同一项目添加替代代码片段。

好的,这是我的设置(我使用的是设置说明中提供的测试数据 Google 表格),以及我遇到的错误……(显然该插件已损坏,并且开发人员需要付费?当然没问题,只是告知您!)

如果您能提供任何帮助,我将不胜感激!

它仍然有效,请确保您的私钥以 -----BEGIN PRIVATE KEY----- 开头,并以 -----END PRIVATE KEY----- 结尾。

1 个赞

不,它运行正常——而且是免费的。你为什么会这么想?

1 个赞