# DiscPage: 静的ページを作成し、テキストにディスカッションバブルを挿入するプラグイン

**URL:** https://meta.discourse.org/t/discpage-a-plugin-to-create-static-pages-and-insert-discussion-balloons-in-the-text/136841
**Category:** Plugin
**Tags:** deprecated
**Created:** [2019 年 12 月 22 日午後 8:23 UTC](https://meta.discourse.org/t/discpage-a-plugin-to-create-static-pages-and-insert-discussion-balloons-in-the-text/136841 "2019-12-22T20:23:32Z")
**Posts on this page:** 1
**Showing post:** 35

<div class="post-metadata">

### Author: ![syl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/syl/32/98883_2.png) [@syl](https://meta.discourse.org/u/syl)
#### Post date: [2020 年 10 月 18 日午後 11:11 UTC](https://meta.discourse.org/t/discpage-a-plugin-to-create-static-pages-and-insert-discussion-balloons-in-the-text/136841/35 "2020-10-18T23:11:01Z")

</div>

> [@Benjamin\_D](#):
>
> `html.dpg header.d-header .wrap` ブロックをコメントアウトしましたが、静的分割ページの上部のヘッダーに少し白い余白があってもあまり気になりません。

現在のレイアウトの方が好みです。ただし、これを簡単にカスタマイズできる方法があるべきでしょう。考えてみます。

> [@Benjamin\_D](#):
>
> 重要ではありませんが、静的ページがバルーンのサブカテゴリであっても機能しますか？

いいえ、この組み合わせはサポートされていません。

> [@Benjamin\_D](#):
>
> ユーザーが（自分の）静的投稿を作成・編集できるようにすることは可能でしょうか？管理者制限はカテゴリのセキュリティ設定だけで実現できるはずです。

すでにお気づきの通り、静的ページの作成は管理者に限定されていませんが、バルーンの挿入は管理者に限定されています。その理由は、Discourse でタグを作成する直接的な方法がないためです（[こちらのスレッド](https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526/10?u=syl)を参照）。そのため、管理者に限定されている `tag group` API を使用することを選びました。代替案もありましたが、それぞれに欠点がありました。

> [@Benjamin\_D](#):
>
> 余談ですが、プラグインのチェックリストが discpage と干渉しているようです（getmodel() に関する問題のようです）

[このプラグイン](https://meta.discourse.org/t/checklist-plugin-interactive-checkboxes-made-simple/36362) のことをおっしゃっていますか？何が問題でしょうか？

---

_[View the full topic](https://meta.discourse.org/t/discpage-a-plugin-to-create-static-pages-and-insert-discussion-balloons-in-the-text/136841)._
