# 新しいトピックとカテゴリ、タグを設定するためのURL

**URL:** https://meta.discourse.org/t/url-to-set-up-new-topic-and-category-tags/238183
**Category:** Feature
**Created:** [2022 年 9 月 5 日午後 10:33 UTC](https://meta.discourse.org/t/url-to-set-up-new-topic-and-category-tags/238183 "2022-09-05T22:33:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![EGreg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/egreg/32/133614_2.png) [@EGreg](https://meta.discourse.org/u/EGreg)
#### Post date: [2022 年 9 月 5 日午後 10:33 UTC](https://meta.discourse.org/t/url-to-set-up-new-topic-and-category-tags/238183/1 "2022-09-05T22:33:40Z")

</div>

iframe 内で Discourse を使用できることを発見しました。このモードでは、ヘッダーなどを非表示にします。

これで、チャット / ディスカッション システムの完全な代替にしたいと考えています。チャットがある場所ならどこでも、Discourse のトピックを作成できます。

しかし、それが機能するためには、トピックコンポーザーを設定し、トピックとカテゴリを事前入力する URL に iframe 内のユーザーを誘導できる必要があります。それは可能ですか？

その後、コールバックで結果のトピック ID と URL を取得する必要もあります。これにより、側で保存して次回 iframe で開くことができます。独自のチャットを開く代わりに。

考えてみると、PostMessage と Javascript を Discourse と独自のアプリ内でこれらすべてに使用できると思います。右？

Javascript でクリックをシミュレートしたり、よく知られた ID またはクラスを持つ要素を埋めたりできますが、ドキュメント化された Javascript API を使用したいと考えています。

上記を達成するために Ember.js を使用するコード例を教えていただけますか？

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2022 年 9 月 9 日午後 1:15 UTC](https://meta.discourse.org/t/url-to-set-up-new-topic-and-category-tags/238183/3 "2022-09-09T13:15:42Z")

</div>

> [@EGreg](#):
>
> iframe 内のユーザーを、トピックコンポーザーを設定し、トピックとカテゴリを事前入力する URL にリダイレクトできるようにする必要があります。

URL パラメータを使用して、事前入力されたデータでトピックを作成することはサポートしています。これが役立つことを願っています。

> [@Creating a link to start a new topic with pre-filled information](https://meta.discourse.org/t/how-to-create-a-new-topic-link-with-pre-filled-information/28074):
>
> bookmark This documentation explains how to create a link that starts a new topic in Discourse with pre-filled information. person_raising_hand Required user level: All users Sometimes you may want to provide users with a link that opens a new topic composer with certain information pre-filled. This can be useful for various use cases including bug report templates, feature requests, or standardized posts. Constructing the URL Base URL To compose a new pre-filled topic with no extra i…

通常、Discourse を iFrame で使用することはサポートしていないため、ここで Meta でのセットアップに関連するサポートを見つけるのは難しい場合があります。
