# 是否可以从管理员搜索中排除隐藏设置？

**URL:** <https://meta.discourse.org/t/can-hidden-settings-be-excluded-from-admin-search/368244>\
**Category:** UX\
**Tags:** fixed\
**Created:** [2025年五月30日 12:59 UTC](https://meta.discourse.org/t/can-hidden-settings-be-excluded-from-admin-search/368244 "2025-05-30T12:59:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2025年五月30日 12:59 UTC](https://meta.discourse.org/t/can-hidden-settings-be-excluded-from-admin-search/368244/1 "2025-05-30T12:59:27Z")

</div>

今天管理员搜索让我有点困惑。我试图查找与在“关于”页面显示附加组相关的设置。搜索它们工作正常

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

但我无法在配置页面找到该设置。

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/8/0/0801188daad575f3db6146f30de865ca4e34f5a4.png)

我认为这些设置在 `show_additional_about_groups` 为 false 时是隐藏的。

> <https://github.com/discourse/discourse/blob/291953c4f048c586c91e55e44ab126f253c8b560/app/assets/javascripts/admin/addon/components/admin-config-areas/about.gjs#L63-L65>

> <https://github.com/discourse/discourse/blob/291953c4f048c586c91e55e44ab126f253c8b560/app/assets/javascripts/admin/addon/components/admin-config-areas/about.gjs#L119-L134>

是否有可能隐藏搜索结果中用户不可见的内容？

在所有站点设置中可以轻松找到设置时，隐藏配置页面上的设置背后的想法是什么？

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [2025年十月9日 23:46 UTC](https://meta.discourse.org/t/can-hidden-settings-be-excluded-from-admin-search/368244/2 "2025-10-09T23:46:31Z")

</div>

嗯，这似乎只是一个暂时的故障？

因为我可以在配置页面上再次找到该设置：

 ![CleanShot 2025-10-09 at 17.45.19@2x](https://global.discourse-cdn.com/meta/original/4X/1/6/b/16bb84686e7a213882a4c01f1430f12bfd6a3610.png)

自五月以来，变化很大，所以如果您在隐藏设置+搜索方面仍然遇到任何问题，请告诉我。

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2025年十月10日 00:31 UTC](https://meta.discourse.org/t/can-hidden-settings-be-excluded-from-admin-search/368244/3 "2025-10-10T00:31:46Z")

</div>

在 [DEV: Have about page extra groups depend on groups selected by Drenmi · Pull Request #33095 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/33095/) 中，我们在六月份删除了额外的“仅在启用设置时显示”逻辑，所以它现在对你有效并不奇怪。

总的来说，我的报告更多地关注于将设置从配置页面隐藏所带来的令人困惑的后果，而管理员搜索在尝试查找这些设置时仍然会链接到此配置页面。特别是当设置显示在“所有站点设置”中时，管理员搜索本可以链接到那里。不过，我并不真正理解隐藏配置页面中的设置但不在“所有站点设置”中隐藏的好处。

无论如何，虽然这个问题在主题组件迁移完成后得到了解决，但可能还会有其他组件迁移或其他原因导致你决定从配置页面隐藏设置。在这种情况下，我希望下次管理员搜索不会链接到该页面。

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [2025年十月10日 01:21 UTC](https://meta.discourse.org/t/can-hidden-settings-be-excluded-from-admin-search/368244/4 "2025-10-10T01:21:10Z")

</div>

我确实很欣赏你总是能准确地找到相关的提交。\n\n你希望保持这个话题开放还是在我解决标题问题后将其关闭？

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2025年十月10日 05:28 UTC](https://meta.discourse.org/t/can-hidden-settings-be-excluded-from-admin-search/368244/5 "2025-10-10T05:28:08Z")

</div>

我会关闭它。目前没有什么可做的，如果需要，随时可以重新开放。

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [2025年十月10日 15:53 UTC](https://meta.discourse.org/t/can-hidden-settings-be-excluded-from-admin-search/368244/6 "2025-10-10T15:53:40Z")

</div>


