# Layouts 插件

**URL:** https://meta.discourse.org/t/layouts-plugin/55208
**Category:** Plugin
**Tags:** pavilion, broken
**Created:** [2017年一月5日 09:41 UTC](https://meta.discourse.org/t/layouts-plugin/55208 "2017-01-05T09:41:13Z")
**Posts on this page:** 12
**Page:** 19

<div class="post-metadata">

### Author: ![Nick\_Tomlinson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_tomlinson/32/282728_2.png) [@Nick\_Tomlinson](https://meta.discourse.org/u/Nick_Tomlinson)
#### Post date: [2023年五月19日 19:30 UTC](https://meta.discourse.org/t/layouts-plugin/55208/380 "2023-05-19T19:30:41Z")

</div>

可惜文档不存在 😉

---

<div class="post-metadata">

### Author: ![AriesFR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ariesfr/32/302185_2.png) [@AriesFR](https://meta.discourse.org/u/AriesFR)
#### Post date: [2023年五月21日 11:23 UTC](https://meta.discourse.org/t/layouts-plugin/55208/381 "2023-05-21T11:23:10Z")

</div>

嗯，也许它不存在，但我不知道，而且我找到了它 😇…

---

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [2023年九月12日 16:25 UTC](https://meta.discourse.org/t/layouts-plugin/55208/382 "2023-09-12T16:25:40Z")

</div>

您好，我最近安装了这个很棒的插件。将主题列表小部件加载为一个组件。  
我注意到，当我单击侧边栏中某个主题的文本链接，然后单击相应帖子时，侧边栏会消失。我必须刷新网站页面才能再次看到侧边栏。这是插件（或小部件？）的功能，还是我做错了什么？

这是我的设置：

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/6/6/d663d9df6c963bcb9f93471d0c7b5573f396a504.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2023年十一月6日 11:33 UTC](https://meta.discourse.org/t/layouts-plugin/55208/383 "2023-11-06T11:33:59Z")

</div>

如果此插件对您的网站至关重要，请不要重建：

> [@November 2023 - refactoring Discovery routes: how will it affect my theme/plugin?](https://meta.discourse.org/t/upcoming-refactoring-to-discovery-routes-how-will-it-affect-my-theme-plugin/282816/3):
>
> This change is now live in main/tests-passed

Layouts 深度定制了 Discourse 的前端，我们目前还没有资源来重构它以支持上述更改。

要么：

- 在我们给您亮绿灯之前，请暂缓重建，或者
- 暂时从您的网站上移除 Layouts。

感谢您对我们免费产品的关注。

---

<div class="post-metadata">

### Author: ![ckshen](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@ckshen](https://meta.discourse.org/u/ckshen)
#### Post date: [2024年一月22日 05:38 UTC](https://meta.discourse.org/t/layouts-plugin/55208/384 "2024-01-22T05:38:40Z")

</div>

这意味着如果我们重建，就不能将布局和位置结合起来在侧面创建地图，就像我们目前使用布局和位置所做的那样吗？

> **[New York City](https://www.hungryonion.org/c/regions/nyc/11)**
>
> Food and restaurant discussions for all New York City boroughs- Manhattan, Brooklyn, Queens, the Bronx, and Staten Island.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年一月22日 17:42 UTC](https://meta.discourse.org/t/layouts-plugin/55208/385 "2024-01-22T17:42:46Z")

</div>

正确。布局已消失。

---

<div class="post-metadata">

### Author: ![ckshen](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@ckshen](https://meta.discourse.org/u/ckshen)
#### Post date: [2024年一月22日 17:49 UTC](https://meta.discourse.org/t/layouts-plugin/55208/386 "2024-01-22T17:49:46Z")

</div>

感谢您的回复。正如您在上面提到的，是永久消失还是暂时消失？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年一月22日 17:53 UTC](https://meta.discourse.org/t/layouts-plugin/55208/387 "2024-01-22T17:53:53Z")

</div>

如果有人站出来资助其复兴，我就可以更明确地发表我的声明。

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年三月6日 10:51 UTC](https://meta.discourse.org/t/layouts-plugin/55208/388 "2024-03-06T10:51:12Z")

</div>

我已经构建了一个Layouts的潜在替代方案，欢迎大家试用，它现在是一个主题组件：

> **[GitHub - merefield/discourse-tc-bars: A Theme Component that allows you to lay out...](https://github.com/merefield/discourse-tc-bars)**
>
> A Theme Component that allows you to lay out Components ("widgets") on top and side bars

它需要使用能够自行获取数据的自给自足的组件。如果您需要构建这些组件的帮助，可以聘请我。

我已经在[https://meta.discourse.org/t/discourse-ai-topic-summary-automated-summaries-and-smart-tagging/256711中构建了对Bars的支持。](https://meta.discourse.org/t/discourse-ai-topic-summary-automated-summaries-and-smart-tagging/256711%E4%B8%AD%E6%9E%84%E5%BB%BA%E4%BA%86%E5%AF%B9Bars%E7%9A%84%E6%94%AF%E6%8C%81%E3%80%82)

---

<div class="post-metadata">

### Author: ![Boulaajaj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/boulaajaj/32/439375_2.png) [@Boulaajaj](https://meta.discourse.org/u/Boulaajaj)
#### Post date: [2024年八月21日 03:22 UTC](https://meta.discourse.org/t/layouts-plugin/55208/389 "2024-08-21T03:22:07Z")

</div>

**安装 Discourse Layouts 插件时构建失败：**

**错误：** `- errorMessage: discourse/plugins/discourse-layouts/discourse/templates/sidebar-wrapper.js: /var/www/discourse/app/assets/javascripts/discourse/discourse/plugins/discourse-layouts/discourse/templates/sidebar-wrapper.js: 断言失败：命名出口已在 Ember 4.0 中移除。请参阅 https://deprecations.emberjs.com/v3.x#toc_route-render-template 以获取有关命名出口用例替代 API 的指导。（'discourse/plugins/discourse-layouts/discourse/templates/sidebar-wrapper.hbs' @ L39:C4）错误：/var/www/discourse/app/assets/javascripts/discourse/discourse/plugins/discourse-layouts/discourse/templates/sidebar-wrapper.js: 断言失败：命名出口已在 Ember 4.0 中移除。请参阅 https://deprecations.emberjs.com/v3.x#toc_route-render-template 以获取有关命名出口用例替代 API 的指导。`

请帮忙。谢谢。

---

<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: [2024年八月21日 03:42 UTC](https://meta.discourse.org/t/layouts-plugin/55208/390 "2024-08-21T03:42:45Z")

</div>

恐怕 layouts 插件已不再维护（请注意 #broken 标签）。

如果您需要帮助迁移到另一个框架（例如上面 @merefield 的框架）或考虑其他方法，您可以 [联系 Pavilion](https://coop.pavilion.tech/w/get-in-touch)。

---

<div class="post-metadata">

### Author: ![Boulaajaj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/boulaajaj/32/439375_2.png) [@Boulaajaj](https://meta.discourse.org/u/Boulaajaj)
#### Post date: [2024年八月21日 03:50 UTC](https://meta.discourse.org/t/layouts-plugin/55208/391 "2024-08-21T03:50:01Z")

</div>

非常感谢您，@nathank。我会尝试您上面提到的替代方案。

另外，感谢您指出 #broken 标签；我之前也不知道。

感谢您的帮助。

[上一頁](https://meta.discourse.org/t/layouts-plugin/55208.md?page=18)
