# Discourse-search-banner 无法访问 \`outletArgs\`

**URL:** <https://meta.discourse.org/t/discourse-search-banner-does-not-have-access-to-outletargs/287871>\
**Category:** Development\
**Created:** [2023年十二月7日 16:27 UTC](https://meta.discourse.org/t/discourse-search-banner-does-not-have-access-to-outletargs/287871 "2023-12-07T16:27:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benedfit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benedfit/32/347460_2.png) [@benedfit](https://meta.discourse.org/u/benedfit)\
**Post date:** [2023年十二月7日 16:27 UTC](https://meta.discourse.org/t/discourse-search-banner-does-not-have-access-to-outletargs/287871/1 "2023-12-07T16:27:14Z")

</div>

您好，在使用 `discourse-search-banner` 和 `search-menu-results-top` 连接器时，我遇到一个问题：

 ![Screenshot 2023-12-07 at 16.24.54](https://global.discourse-cdn.com/meta/original/4X/d/1/a/d1a26abfb178b6c1cf1a7257ab0ab30b712d7bb6.png)

当尝试在连接器中显示 `{{@outletArgs.searchTerm}}` 时，该值似乎无法渲染（应该显示在“尝试询问”和“我们的 AI…”之间 - 预期结果可以在 [Search-menu-results-top outlets not correctly positioned](https://meta.discourse.org/t/search-menu-results-top-outlets-not-correctly-positioned/287870) 中看到）

如果能得到任何帮助，我将不胜感激。

谢谢。

---

<div class="post-metadata">

**Author:** ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)\
**Post date:** [2023年十二月7日 18:44 UTC](https://meta.discourse.org/t/discourse-search-banner-does-not-have-access-to-outletargs/287871/3 "2023-12-07T18:44:29Z")

</div>

交叉发布

> [@Search-menu-results-top outlets not correctly positioned](https://meta.discourse.org/t/search-menu-results-top-outlets-not-correctly-positioned/287870/4?u=isaac):
>
> Hey there, thank you for the report! As you have pointed out, the search-menu-results-top plugin outlet was not positioned at the top of results as expected. Additionally, we have recently upgraded the search menu and its internals to rely on [Glimmer](https://glimmerjs.com/). You are not seeing @outletArgs.searchTerm as it was not included (unintentionally) in the search-menu-results-top plugin outlet, attached to the glimmer search menu. This will be fixed by see plugin ou…

---

<div class="post-metadata">

**Author:** ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)\
**Post date:** [2023年十二月11日 14:00 UTC](https://meta.discourse.org/t/discourse-search-banner-does-not-have-access-to-outletargs/287871/4 "2023-12-11T14:00:49Z")

</div>

此主题已在 3 天后自动关闭。不再允许回复。
