# 기본 Composer 카테고리 컴포넌트

**URL:** <https://meta.discourse.org/t/default-composer-category-component/148048>\
**Category:** Theme component\
**Tags:** end-of-life\
**Created:** [4월 15, 2020, 2:01오전 UTC](https://meta.discourse.org/t/default-composer-category-component/148048 "2020-04-15T02:01:33Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [9월 30, 2022, 6:30오후 UTC](https://meta.discourse.org/t/default-composer-category-component/148048/13 "2022-09-30T18:30:45Z")

</div>

> [@pfaffman](#):
>
> 새로운 #general이 #uncategorized를 대체할 기본 카테고리가 되기를 바랐는데, lounge를 대체하는 이상한 이름의 카테고리가 될 줄은 몰랐습니다.

이것은 아주 새로운 변경 사항으로 방금 병합되었습니다. 이제 General은 _새로운_ 사이트에서 작성기(composer)의 기본 카테고리가 되었습니다.

> <https://github.com/discourse/discourse/pull/18383>
>
> This change will auto select the General category in the composer when a new top…ic is created. As part of this change it will remove the option to de-select the category from the composer when the allow uncategorized site setting is disabled (you can still switch categories in the composer, but will not be allowed to leave the category field blank). This means that a user will no-longer receive the "you must select a category" message when submitting a topic because they will always have one selected.
> 
> There is a migration that will only trigger for \*new\* sites for setting the \`allow\_uncategorized\_topics\` site setting to false so that it is now disabled by default. This change initially broke many tests because we don't currently seed the general category and most of the tests were written assuming that uncategorized topics were allowed. I made the necessary changes to get the tests to pass, but I think there will be a refactoring that will need to take place in the future where we seed the General category in the test env so that helpers like \`create\_post\` use the General category instead of falling back to uncategorized.

> [@mattdm](#):
>
> 그런 다음 사용자가 개인적으로 선호하는 기본값을 개별적으로 선택할 수 있도록 허용하세요.

이 기능은 아직 _존재하지 않지만_, 추가하는 것에 열려 있습니다!

기존 사이트의 경우, 기본 카테고리 기능을 어떻게 적용할 수 있을지 계획을 세워야 합니다. 현재는 `allow_uncategorized_topics`를 비활성화해야 하지만, 이 경우 General 카테고리가 존재하고 숨겨진 사이트 설정인 `general_category_id`가 설정되어 있어야 합니다. 관리자가 기본 카테고리를 커스터마이즈할 수 있다면 기존 사이트가 이 기능을 적용하기가 더 쉬워지고, uncategorized가 활성화된 상태에서도 작동하도록 할 수 있을 것입니다.

---

_[View the full topic](https://meta.discourse.org/t/default-composer-category-component/148048)._
