Custom Topic Button

:information_source: Deprecated: There is now a Customization > 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개의 좋아요