angus
(Angus McLeod)
2021 年6 月 7 日 06:00
1
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 .
Get the code
Read the documentation
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.
angus
(Angus McLeod)
2021 年10 月 18 日 07:31
3
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),让它恢复运行:
main ← api_refactor
opened 12:16PM - 01 Dec 22 UTC
* fixes the back end which broke due to dependencies.
* replacement of 3rd part… y library with official api client from Google so should be more robust going forward
* removes many redundant gems
* major simplification of code:
* higher level API allows us to get rid of token management & Plugin Store use (as per new draft Pavilion policy).
* sheets tests rewritten and take advantage of stubbing
* fixed & updated CI script to more modern core equivalent
* **NB breaking changes to settings** (necessary evil due to change of interface):
- substitutes worksheet names for gids
- substitutes spreadsheet id for spreadsheet url
- bumped to new minor version due to breaking changes (though you could argue it should be a MAJOR bump, see: https://semver.org/)
将 API 迁移到 Google 的官方 API,删除了一个中间 gem(以及其他几个),并添加了 CI,以便将来能更可靠地运行。
请注意设置的重大更改:
mentionables_google_spreadsheet_url:“Google 电子表格的 URL”
变为:
变为:
mentionables_google_worksheet_names:“范围内的源工作表(选项卡)的名称”
并且有一个新设置:
mentionables_google_worksheet_max_row:“扫描的最大行数”
这修复了前端(同时添加了测试)
main ← production_fixes
opened 11:35PM - 02 Jan 23 UTC
3 个赞
frold
2023 年5 月 2 日 11:55
8
为什么这么技术化?我甚至无法设置和使用它。
如果有一个上传电子表格的按钮,像我这样的普通用户就可以使用了。
或者一个在线表单编辑器。可惜,这太高级了。
RGJ
(Richard - Communiteq)
2023 年5 月 2 日 13:11
9
我部分同意你的看法。这个插件确实是为相当技术性的受众构建的。但只有设置比较困难,之后就相反了。
事实上,它试图通过利用 Google 表格的功能来使用一个熟悉的编辑器。
设置完成后,任何非技术人员都可以比上传文件更容易地使用该插件。
我怀疑这不适合 @frold 的用例,因为他的用例是展示由第三方网站渲染的财务图表。Mentionables 的设计初衷并非如此。
@frold 这里没有用于共享第三方图表的代码。此插件将无法帮助您。它纯粹是为了允许网站让用户搜索和调用产品列表,这些产品以灰色气泡的形式显示,并链接到每个产品页面。
1 个赞
在进行设置和配置之前,我想确认一下 mentionables 是否适用于起草法律文件的主题,这些文件需要包含对法律和案例的引用,并且连接的“mentionables”电子表格包含相关的法律引用和判例汇编?
1 个赞
这听起来很有可能。如果你有关于积满灰尘的旧书的漂亮图片,那将会有帮助
1 个赞
有一天,我一直想为按“+”键多次访问的同一项目添加替代代码片段。
好的,这是我的设置(我使用的是设置说明中提供的测试数据 Google 表格),以及我遇到的错误……(显然该插件已损坏,并且开发人员需要付费?当然没问题,只是告知您!)
如果您能提供任何帮助,我将不胜感激!
它仍然有效,请确保您的私钥以 -----BEGIN PRIVATE KEY----- 开头,并以 -----END PRIVATE KEY----- 结尾。
1 个赞
RGJ
(Richard - Communiteq)
2023 年10 月 5 日 08:38
20
不,它运行正常——而且是免费的。你为什么会这么想?
1 个赞