Custom Topic Button

:information_source: 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).

:link: GitHub: https://github.com/techapj/discourse-custom-topic-button
:arrow_right: 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

それらは同様の方法で動作しますか?

インストールしましたが、どちらも別のウィンドウでリンクが開きます。同じウィンドウで開く方法はありますか?

うーん。:thinking: 私が正しく読んでいるなら、新しいウィンドウで開くのはテーマコンポーネントのコードの一部だと思います。

(プラグインも同様だと思います)

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からそれを変更する方法は現在ないようです。カスタム作業でその動作を変更できるかもしれませんが、それは私の専門ではありません。:slight_smile:

「いいね!」 1

こんにちは、koliwiさん。今週中にこの機能を追加するためにテーマコンポーネントを確認してみます。:slight_smile:

「いいね!」 3

このプラグインはあなたのですか?素晴らしい出来栄えですね!同じウィンドウで開くことができれば、さらに良くなると思います!ありがとうございます!

私の物ではありませんが、それでも確認できます。お知らせします :slight_smile:

「いいね!」 2