# Custom post warning for categories

**URL:** https://meta.discourse.org/t/custom-post-warning-for-categories/239418
**Category:** Feature
**Created:** [September 19, 2022, 2:54pm UTC](https://meta.discourse.org/t/custom-post-warning-for-categories/239418 "2022-09-19T14:54:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![attj](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@attj](https://meta.discourse.org/u/attj)
#### Post date: [September 19, 2022, 2:54pm UTC](https://meta.discourse.org/t/custom-post-warning-for-categories/239418/1 "2022-09-19T14:54:07Z")

</div>

It would be nice to be able to display custom warnings for posts under certain categories while typing it on the composer. Simply to remind basic rules under certain categories

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 19, 2022, 4:30pm UTC](https://meta.discourse.org/t/custom-post-warning-for-categories/239418/2 "2022-09-19T16:30:20Z")

</div>

something like [What are Topic Templates?](https://meta.discourse.org/t/what-are-topic-templates/38295) except for posts?

---

<div class="post-metadata">

### Author: ![attj](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@attj](https://meta.discourse.org/u/attj)
#### Post date: [September 19, 2022, 5:48pm UTC](https://meta.discourse.org/t/custom-post-warning-for-categories/239418/3 "2022-09-19T17:48:15Z")

</div>

Not necessarily, it does not have to enforce anything about the structure. Just a reminer about the rules for a category. on the preview part of the post composer

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 19, 2022, 6:20pm UTC](https://meta.discourse.org/t/custom-post-warning-for-categories/239418/4 "2022-09-19T18:20:18Z")

</div>

So like `/admin/customize/site_texts?q=reply_placeholder` except customized per category?

---

<div class="post-metadata">

### Author: ![attj](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@attj](https://meta.discourse.org/u/attj)
#### Post date: [September 19, 2022, 6:39pm UTC](https://meta.discourse.org/t/custom-post-warning-for-categories/239418/5 "2022-09-19T18:39:51Z")

</div>

That would work, but it would be much better to have it on the preview window of the compser instead of the placeholder inside the textbox

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [September 19, 2022, 7:44pm UTC](https://meta.discourse.org/t/custom-post-warning-for-categories/239418/6 "2022-09-19T19:44:20Z")

</div>

A similar topic was started recently here: [Can I customize the welcome message shown when creating a new topic based on the chosen tag or category?](https://meta.discourse.org/t/can-i-customize-the-welcome-message-shown-when-creating-a-new-topic-based-on-the-chosen-tag-or-category/238371)

I don’t think there’s a built-in way to do exactly what you want today.

Topic templates (as suggested above) are probably the closest fit with developing some kind of #Customization > Theme component or something.

One option would be to include some thing in HTML comments in the topic template so it wouldn’t show up in the post even if the user doesn’t remove it, e.g.:

```plaintext
<!-- 
  some tips for new topics in #category 
  - foo
  - bar
  - baz
-->

```
