# Use template as new topic not working in Docs

**URL:** https://meta.discourse.org/t/use-template-as-new-topic-not-working-in-docs/206251
**Category:** Bug
**Tags:** docs
**Created:** [October 17, 2021, 6:38am UTC](https://meta.discourse.org/t/use-template-as-new-topic-not-working-in-docs/206251 "2021-10-17T06:38:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 17, 2021, 6:38am UTC](https://meta.discourse.org/t/use-template-as-new-topic-not-working-in-docs/206251/1 "2021-10-17T06:38:36Z")

</div>

Hello,

The composer not opening in Docs and show error in console.

**Repro**

1. Go to a topic in /docs which contains this button ![Screenshot 2021-10-17 at 8.33.47](https://global.discourse-cdn.com/meta/original/3X/8/1/81fdd7e80f51c327f9813153bd943788ebb83daf.png) for example this one: [Writing an effective bug report - Contributing - Discourse Meta](https://meta.discourse.org/docs?category=10&topic=183671)

2. Click the button and the composer will not open.

3. Check the console it will show errors ⬇

 ![Screenshot 2021-10-17 at 8.30.23](https://global.discourse-cdn.com/meta/original/3X/c/b/cb303dc9f3df43d3df4ca9e34c817a1de261b734.png)

Thanks 🙂

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 18, 2021, 12:53am UTC](https://meta.discourse.org/t/use-template-as-new-topic-not-working-in-docs/206251/2 "2021-10-18T00:53:03Z")

</div>

Confirmed, we struggled with decorate posts quite a lot in docs. We certainly want to improve this.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [October 19, 2021, 7:36am UTC](https://meta.discourse.org/t/use-template-as-new-topic-not-working-in-docs/206251/6 "2021-10-19T07:36:43Z")

</div>

I just made a fix which should allow the theme component to work within discourse-docs. We might need better fixes directly in discourse-docs in the future, but that should be enough for now.

Please update your discourse-reply-template-theme-component and let me know how it goes.

Thanks.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 19, 2021, 6:01pm UTC](https://meta.discourse.org/t/use-template-as-new-topic-not-working-in-docs/206251/8 "2021-10-19T18:01:34Z")

</div>

Thanks for the quick fix Joffrey! Works great!

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [October 26, 2021, 7:23pm UTC](https://meta.discourse.org/t/use-template-as-new-topic-not-working-in-docs/206251/10 "2021-10-26T19:23:32Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
