# 用户对主题组件的偏好

**URL:** https://meta.discourse.org/t/user-preference-on-theme-components/191268
**Category:** Development
**Created:** [2021年五月22日 09:14 UTC](https://meta.discourse.org/t/user-preference-on-theme-components/191268 "2021-05-22T09:14:41Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [2021年五月22日 18:57 UTC](https://meta.discourse.org/t/user-preference-on-theme-components/191268/2 "2021-05-22T18:57:13Z")

</div>

创建自定义用户字段，然后在你的主题组件中使用它。

> [@Creating and configuring custom user fields](https://meta.discourse.org/t/how-to-create-and-configure-custom-user-fields/113192):
>
> bookmark This guide explains how to create and configure custom user fields in Discourse, including how to add them to the signup form, user profiles, and user directory. person_raising_hand Required user level: Administrator Custom user fields allow you to collect additional information from your users beyond the standard profile fields. These fields can be displayed on user cards, user summary pages, and even retrieved using the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin. This guide will walk you through th…

---

_[View the full topic](https://meta.discourse.org/t/user-preference-on-theme-components/191268)._
