# 使用主题模板与创建主题链接

**URL:** https://meta.discourse.org/t/use-topic-template-with-create-topic-link/85347
**Category:** Support
**Created:** [2018年四月14日 20:13 UTC](https://meta.discourse.org/t/use-topic-template-with-create-topic-link/85347 "2018-04-14T20:13:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![TheOctopus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/theoctopus/32/205017_2.png) [@TheOctopus](https://meta.discourse.org/u/TheOctopus)
#### Post date: [2018年四月14日 20:13 UTC](https://meta.discourse.org/t/use-topic-template-with-create-topic-link/85347/1 "2018-04-14T20:13:42Z")

</div>

I have a category on my forum with a topic template. For ease of access I want to create a link that will auto-open the create topic panel with this category loaded. Right now I have a link to `/new-topic?category_id=7`, which correctly starts a new topic for that category. However, this doesn’t use the topic template. If I manually click the Create Topic button it does use this template. How can I combine these two and create a link that uses the topic template?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [2019年九月27日 17:15 UTC](https://meta.discourse.org/t/use-topic-template-with-create-topic-link/85347/2 "2019-09-27T17:15:47Z")

</div>

我知道已经过了很久，但我还是想告诉你，答案在这里：

> [@Create a new topic button with category and topic template](https://meta.discourse.org/t/how-to-create-a-new-topic-button-with-category-and-topic-template/85775):
>
> I’m looking at the following theme as a reference. My goal is to find a way to put up a secondary new topic button that shows up for members of a specific group. This group has access to a private area in the forum and I’d like to be able to have the button in question start a new topic in that area of the forum regardless of their current page. I’m also looking to use a topic template or similar boilerplate functionality with this button. I think I’ve figured out how to selectively add the…

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年五月18日 13:18 UTC](https://meta.discourse.org/t/use-topic-template-with-create-topic-link/85347/3 "2023-05-18T13:18:01Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年五月18日 13:37 UTC](https://meta.discourse.org/t/use-topic-template-with-create-topic-link/85347/4 "2023-05-18T13:37:58Z")

</div>

我现在认为这可以自动运行 🪄 例如：

[https://meta.discourse.org/new-topic?category\_id=6](https://meta.discourse.org/new-topic?category_id=6)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年五月18日 13:38 UTC](https://meta.discourse.org/t/use-topic-template-with-create-topic-link/85347/5 "2023-05-18T13:38:21Z")

</div>


