# 플러그인을 통해 툴바 버튼을 클릭한 후 모달 대화상자를 표시하는 방법

**URL:** https://meta.discourse.org/t/show-a-modal-dialog-after-clicking-toolbar-button-via-a-plugin/269521
**Category:** Development
**Created:** [6월 24, 2023, 10:21오후 UTC](https://meta.discourse.org/t/show-a-modal-dialog-after-clicking-toolbar-button-via-a-plugin/269521 "2023-06-24T22:21:59Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [6월 26, 2023, 7:46오전 UTC](https://meta.discourse.org/t/show-a-modal-dialog-after-clicking-toolbar-button-via-a-plugin/269521/2 "2023-06-26T07:46:17Z")

</div>

피터, 안녕하세요 🙂

질문에 대한 답변을 드릴 만큼 지식이 부족하지만, 컴포저에 버튼을 추가하고 모달을 여는 플러그인과 테마 컴포넌트를 하나씩 첨부합니다. 이 두 가지의 코드에서 힌트를 얻을 수 있을지도 모르겠네요:

> [@Locations Plugin earth\_africa](https://meta.discourse.org/t/locations-plugin/69742?u=canapin):
>
> information_sourceSummary A Discourse plugin that adds structured and geocoded topic and user locations with map-based discoveryhammer_and_wrenchRepository Link [https://github.com/merefield/discourse-locations](https://github.com/merefield/discourse-locations)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)heartSponsorship Please consider becoming an ongoing [sponsor of my open source work](https://github.com/sponsors/merefield) at a level that suits your or your organisation’s resources and needs to ensure this plugin gets the maintenance it d…

> [@테마 구성 요소를 사용하여 YouTube 및 Vimeo에 영상 업로드](https://meta.discourse.org/t/video-upload-to-youtube-and-vimeo-using-theme-component/170079):
>
> 이 새로운 테마 컴포넌트는 Discourse 작성기에서 YouTube 및 Vimeo로 비디오를 업로드할 수 있게 해줍니다. 최근 제가 개발한 [플러그인](https://meta.discourse.org/t/discourse-video-upload-plugin-with-youtube-and-vimeo/168569)에 이미 익숙하신 분들을 위해, 동일한 기능이 이제 모든 테마에 추가할 수 있는 이 테마 컴포넌트로 제공됩니다. 이를 통해 설치 과정이 훨씬 간편해졌으며, 플러그인과 완전히 동일한 방식으로 작동합니다. 기능 모든 포럼 멤버가 Vimeo 또는 YouTube로 비디오를 업로드할 수 있습니다(관리자는 둘 중 하나 또는 둘 다 활성화하도록 설정할 수 있음). 관리자는 Vimeo로 업로드된 비디오의 조회 및 임베드 프라이버시를 관리자 설정을 통해 제어할 수 있습니다. 사용자는 업로드 모달에서 YouTube로 업로드된 비디오의 조회 프라이버시를 제어할 수 있습니다. 플러그인 데모를 여기서 시청할 수 있습니다(설정 페이지를 제외하고 컴포넌트에서도 모든 것이 동일합니다. 컴포넌트 설정 페이지는 관리자 \> 사용자 정의 \> 컴포넌트 \> 비디오 업로…

---

_[View the full topic](https://meta.discourse.org/t/show-a-modal-dialog-after-clicking-toolbar-button-via-a-plugin/269521)._
