# 플러그인 아웃렛에서 User 필드가 작동하지 않음

**URL:** https://meta.discourse.org/t/user-field-not-working-in-a-plugin-outlet/376353
**Category:** Development
**Created:** [7월 29, 2025, 7:31오전 UTC](https://meta.discourse.org/t/user-field-not-working-in-a-plugin-outlet/376353 "2025-07-29T07:31:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [7월 29, 2025, 7:31오전 UTC](https://meta.discourse.org/t/user-field-not-working-in-a-plugin-outlet/376353/1 "2025-07-29T07:31:32Z")

</div>

저는 이 사용자 필드: user-fields/5를 이 아웃렛: above-user-summary-stats에 추가하려고 하고 있습니다. 하지만 로드가 되지 않는데, 제가 사용하려고 하는 hbs는 다음과 같습니다:

```plaintext
{{!-- 사용자 필드 5에 대한 사용자 정의 사용자 필드(예: "프로필 메모")를 표시하고 편집합니다 --}}
{{#if this.fieldValue}}
  <div class="profile-note-display">
    <strong>프로필 메모:</strong> {{this.fieldValue}}
  </div>
{{else}}
  {{#if this.canEdit}}
    <div class="profile-note-display empty">
      <em>설정된 프로필 메모 없음</em>
    </div>
  {{/if}}
{{/if}}

{{#if this.canEdit}}
  {{#unless this.editing}}
    <button class="btn btn-primary btn-small" {{on "click" this.startEdit}}>
      {{#if this.fieldValue}}편집{{else}}추가{{/if}} 프로필 메모
    </button>
  {{/unless}}
{{/if}}

{{#if this.editing}}
  <form {{on "submit" this.save}}>
    <textarea
      rows="4"
      style="width:100%;"
      value={{this.editValue}}
      {{on "input" this.updateEdit}}
      autofocus
    ></textarea>
    <br>
    <button type="submit" class="btn btn-primary btn-small">저장</button>
    <button type="button" class="btn btn-conditional btn-small" {{on "click" this.cancelEdit}}>취소</button>
  </form>
{{/if}}

```

가능한 문제는 무엇일까요?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [7월 29, 2025, 6:08오후 UTC](https://meta.discourse.org/t/user-field-not-working-in-a-plugin-outlet/376353/2 "2025-07-29T18:08:29Z")

</div>

이 템플릿만으로는 충분한 정보를 제공하기 어렵습니다. `this.fieldValue`는 어떻게 정의되어 있나요?

사이트 설정의 `Public user custom fields`에 `user_field_5`를 입력하면, 이 플러그인 아웃렛에서 해당 필드에 접근할 수 있어야 합니다.

템플릿에서 다음과 같이 사용할 수 있습니다: `{{@user.custom_fields.user_field_5}}`

또는 JS에서 다음과 같이 사용할 수 있습니다: `this.args.user?.custom_fields?.user_field_5`

대신, 해당 필드를 공개하고 싶지 않다면 사이트 설정 변경을 생략하고 `this.args.user?.user_fields?.[5]`를 사용할 수 있습니다.
