# 如何在 Discourse 中嵌入 Discourse？

**URL:** https://meta.discourse.org/t/how-to-embed-discourse-in-discourse/163804
**Category:** Support
**Created:** [2020年九月12日 00:53 UTC](https://meta.discourse.org/t/how-to-embed-discourse-in-discourse/163804 "2020-09-12T00:53:13Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![JacobDK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacobdk/32/133657_2.png) [@JacobDK](https://meta.discourse.org/u/JacobDK)
#### Post date: [2020年九月12日 00:53 UTC](https://meta.discourse.org/t/how-to-embed-discourse-in-discourse/163804/1 "2020-09-12T00:53:13Z")

</div>

如果我可以将 Discourse 嵌入到另一个网站，那么在同一 Discourse 实例中，将一个特定群组、分类或未列出的主题列表嵌入到某个主题中，理应也是可行的吧？最佳实践是什么？

> [@Embedding a list of Discourse Topics in another site](https://meta.discourse.org/t/embedding-a-list-of-discourse-topics-in-another-site/125911/55):
>
> And if I want to embed 5 topics in the Discourse-instance itself? I make a topic. Make it a wiki. I publish it as a page. How do I embed the five latest topics from a specific category/tag or use the template this feature supports? Thanks.

> [@How to have wiki-related discussions ? Bidirectional preferred](https://meta.discourse.org/t/how-to-have-wiki-related-discussions-bidirectional-preferred/117690):
>
> I would like to use the wiki-feature of Discourse, but also have the possibility to use the wiki-record (a closed topic containing only the first post as a wiki) as a kind of category, where I can have, not just one discussion-thread, but multiple. These should be related bidirectional, so one somehow leads to the other both ways. Ideally I would like a solution like wikipedias Talk-page, where I can read the wiki-record and then click on a Talk-tab, and there find the related threads for the w…

谢谢。

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [2020年九月12日 06:17 UTC](https://meta.discourse.org/t/how-to-embed-discourse-in-discourse/163804/2 "2020-09-12T06:17:05Z")

</div>

我也想知道如何做到这一点。基本上，就是创建一个主题，展示另一个 Discourse 论坛中的部分最新主题。

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [2020年十月13日 02:23 UTC](https://meta.discourse.org/t/how-to-embed-discourse-in-discourse/163804/3 "2020-10-13T02:23:28Z")

</div>

跟进此事，我通过 Zapier 集成和 Webhooks 实现了这一目标。如果有人需要更多细节，请告诉我。

---

<div class="post-metadata">

### Author: ![JacobDK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacobdk/32/133657_2.png) [@JacobDK](https://meta.discourse.org/u/JacobDK)
#### Post date: [2020年十月15日 08:26 UTC](https://meta.discourse.org/t/how-to-embed-discourse-in-discourse/163804/4 "2020-10-15T08:26:34Z")

</div>

我不确定我是否表达清楚：我想要一个解决方案，让我可以创建一个帖子维基，并在该帖子中显示同一论坛内另一个分类下的最新 5 个主题，而不是来自另一个 Discourse 实例。

不过，我仍然很感兴趣你做了什么以及取得了什么成果。希望能了解更多细节。

谢谢。

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [2020年十月19日 14:10 UTC](https://meta.discourse.org/t/how-to-embed-discourse-in-discourse/163804/5 "2020-10-19T14:10:09Z")

</div>

> [@JacobDK](#):
>
> _在同一个论坛_。

是的，我漏掉了那个，抱歉。

我所做到的可能对你也适用，但过程会相当繁琐。而且我不太确定你所说的“放入 wiki”是什么意思；这个方案会将每个新主题作为单条帖子发布在一个主题中：

> [@Use Zapier to configure a topic on one Discourse as an activity stream for another Discourse](https://meta.discourse.org/t/displaying-topics-in-another-category-or-discourse-instance/167618):
>
> In order to show the most recent topics from one Discourse instance into another, I utilised a Zapier based integration. It takes the OP from each new topic in the category of interest and posts them as a reply in a topic wherever desired. The destination can be either the same instance or a different one. This was extremely helpful for working this out: The process Setup Webhook in the origin Discourse instance to catch new Posts in the appropriate category. Posts gets much more data than …

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [2021年三月27日 13:30 UTC](https://meta.discourse.org/t/how-to-embed-discourse-in-discourse/163804/6 "2021-03-27T13:30:09Z")

</div>

您觉得呢，@JacobDK？  
Discourse (1) 类别中的话题会嵌入到 Discourse (2) 的一个特殊类别中吗？  
还是会在 Discourse (2) 中自动发布一个包含指向 Discourse (1) 话题链接的内容？

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/0/b04a5b9aaf70e00d7de2daf5e89fd4214cd986e3.png)

抱歉，nathankershaw，感谢您的分享，但我想 Zapier 会发布两个内容相同的话题，而我们本可以创建一个话题并链接到之前的话题。  
您能开发一个插件来实现这个功能吗？  
我可以向您捐款！

你好 @neil，您能定制这个插件 [House Ads in the official Ad Plugin](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715) 吗？让它将另一个 Discourse 类别中的话题嵌入进来，并在 Discourse 的一个特殊类别“HOUSE ADS”中显示它们 🙂

这可行吗？

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2021年三月29日 14:49 UTC](https://meta.discourse.org/t/how-to-embed-discourse-in-discourse/163804/7 "2021-03-29T14:49:53Z")

</div>

> [@thaidb](#):
>
> 你好 @neil，你能否自定义这个插件 [官方广告插件中的站内广告](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715)，使其成为另一个 Discourse 实例中某个分类下的嵌入主题，并在另一个 Discourse 实例的特定分类中作为“站内广告”展示？

不行，这超出了站内广告插件的范围。这应该是一个独立的插件。
