# 카테고리 설명이 잘림

**URL:** <https://meta.discourse.org/t/category-description-truncating/171584>\
**Category:** Product Support\
**Created:** [11월 28, 2020, 7:47오후 UTC](https://meta.discourse.org/t/category-description-truncating/171584 "2020-11-28T19:47:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [11월 30, 2020, 6:21오후 UTC](https://meta.discourse.org/t/category-description-truncating/171584/4 "2020-11-30T18:21:50Z")

</div>

설명 발췌 내용의 잘림은 서버에서 여기서 발생합니다.

> <https://github.com/discourse/discourse/blob/06084fb8be70a35968675da670c778cd34c1f551/app/models/category.rb#L316-L323>

이것은 300자로 제한되며, 해당 설정은 없습니다. 그러나 테마 구성 요소를 사용하여 이를 우회하고 프로퍼티를 오버라이드하여 전체 설명(첫 번째 문단 전체)을 사용하도록 할 수 있습니다.

테마 구성 요소의 헤더 섹션에 다음과 같은 코드를 추가해 보세요.

```xml
<script type="text/discourse-plugin" version="0.8">
  const { on } = require("ember-addons/ember-computed-decorators");

  api.modifyClass("component:parent-category-row", {
    @on("init")
    updateDescription() {
      this.set(
        "attrs.category.description_excerpt",
        this.attrs.category.description
      );
    }
  });
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/category-description-truncating/171584)._
