techAPJ
(Arpit Jalan)
1
Deprecated: There is now a theme-component that provides the same feature: Topic Footer Buttons
Summary: This plugin adds a custom button at the bottom of a topic, visible to everyone (who is logged in).
GitHub: https://github.com/techapj/discourse-custom-topic-button
Install: Follow the plugin installation guide.
Features
Configuration
From Admin > Site Settings > Plugin, modify
custom_topic_button_url
custom_topic_button_title
custom_topic_button_label
Note: For button to be visible only to staff or members of a specific group, see:
CHANGELOG
TODO
20 个赞
当我点击按钮时,它会在另一个页面上打开一个链接,如何点击按钮并在同一页面上打开它?
1 个赞
我不确定,但我相信有几个官方的主题组件是实现此目的的最新方法。Topic Footer Buttons
它们的行为方式相似吗?
我已安装它们,但两者都会在新窗口中打开链接,有什么方法可以在同一窗口中打开吗?
嗯。
如果我没看错的话,我认为它在新窗口中打开是主题组件代码的一部分:
(而且我认为插件也是)
discourse-custom-topic-button/assets/javascripts/discourse/connectors/after-topic-footer-main-buttons/custom-public-button.js.es6 at c4a91727c0322f0c59bc09af7fbcb076b5676de4 · arpitjalan/discourse-custom-topic-button · GitHub
目前似乎没有通过 UI 来更改它的方法。通过一些自定义工作或许可以修改该行为,但我恐怕这并非我的专长。 
1 个赞
Canapin
(Coin-coin le Canapin)
9
你好 koliwi,我本周会尝试看看主题组件以添加此功能。 
3 个赞
这个插件是您的吗?祝贺您的工作,我真的很喜欢!如果您可以在同一个窗口中打开它,那就更好了!谢谢!