# Discourse 群组侧边栏菜单

**URL:** <https://meta.discourse.org/t/group-sidebar-menus/394653>\
**Category:** Theme component\
**Tags:** sidebar\
**Created:** [2026年一月29日 13:40 UTC](https://meta.discourse.org/t/group-sidebar-menus/394653 "2026-01-29T13:40:01Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2026年八月30日 03:05 UTC](https://meta.discourse.org/t/group-sidebar-menus/394653/9 "2026-08-30T03:05:02Z")

</div>

此组件已更新为使用新的图标对象类型设置，因此请在升级到最新版本的 Discourse 后对其进行更新。迁移过程将无缝完成，因此您无需进行任何更改（前提是你的 Discourse 已是最新版本）。

> <https://github.com/discourse/discourse/pull/42632>
>
> Follow-up to #42626.
> 
> Previously, the \`icon\` setting type was only available a…s a top-level site/theme setting type — properties inside an \`objects\` setting schema could not use it, and icon names stored in objects values were never added to the SVG sprite sheet.
> 
> This change allows \`objects\` type site and theme settings to declare schema properties with \`type: icon\`, rendering the icon grid picker in the schema editor and automatically including the selected icons (nested \`objects\` included) in the sprite sheet.
> 
> Note one adjacent change: sprite cache invalidation in \`014-track-setting-changes.rb\` was gated on the setting \*name\* containing \`\_icon\`, so changing an \`icon\` or \`objects\` typed site setting left a stale sprite. It now also expires for those types, which fixes that latent gap for top-level \`icon\` site settings from 802fa4c3562 as well.
> 
> Example:
> \`\`\`yaml
> Example:
> type: objects
> default: ""
> schema:
> name: link
> identifier: title
> properties:
> title:
> type: string
> required: true
> icon:
> type: icon
> \`\`\`\`

---

_[View the full topic](https://meta.discourse.org/t/group-sidebar-menus/394653)._
