# 그룹용 커스텀 홈페이지

**URL:** https://meta.discourse.org/t/custom-homepage-for-groups/199623
**Category:** Theme component
**Created:** [8월 7, 2021, 8:12오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623 "2021-08-07T20:12:05Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [12월 9, 2023, 1:39오전 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/42 "2023-12-09T01:39:37Z")

</div>

제가 보기에는 @pfaffman이 마지막 변경 사항에서 불완전한 코드를 도입한 것 같습니다(의도치 않은 실수일 가능성이 높으며, 닫는 괄호가 없는 두 조건문을 참고하세요) 🤔

> <https://github.com/pfaffman/discourse-custom-homepage-for-groups/commit/db93c117da2d0c71377f496251a0458cea741130>

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12월 9, 2023, 1:48오전 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/43 "2023-12-09T01:48:08Z")

</div>

아, 실망이다. broken을 다시 추가해 버렸네. 다음 주에 확인해서 테스트를 추가해 볼까 하는데, 린터가 잡아냈어야 할 것 같은데 말이야.

미안해, 여러분.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12월 14, 2023, 3:39오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/44 "2023-12-14T15:39:13Z")

</div>

이번에는 정말 고쳤다고 생각한다!

테스트도 추가했으니, 다음에 ~~코드를~~ 오류가 있는 코드를 커밋할 때, hopefully 다른 사람이 알아채기 전에 GitHub에서 이메일 알림을 받을 수 있을 것이다.

~~편집: 어머. 테스트를 통과했던 건 다른 저장소였는데, 몇 분 안에 해결할 수 있을 것 같다.~~

~~편집: 음, 코드는 작동하는 것 같지만, 여기서 불평하고 있는 것처럼 여전히 테스트를 통과하지 못하고 있어: [How to convince eslint that settings are defined?](https://meta.discourse.org/t/how-to-convince-eslint-that-settings-are-defined/288690) 아~~

@cvx ([How to convince eslint that settings are defined? - #5 by cvx](https://meta.discourse.org/t/how-to-convince-eslint-that-settings-are-defined/288690/5?u=pfaffman)) 덕분에 하루가 구원받았다.

누가 이 비용을 지불했는지는 기억이 나지 않지만, 지금은 지불하고 있지 않다. 이 내용이 유용하다고 생각한다면, [아직 출시되지 않은 내 새 웹사이트](https://literatecomputing-web.b-cdn.net/quick-payments/)의 방법을 통해 당신이 생각하는 만큼의 금액을 내게 줄 수 있다.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [12월 14, 2023, 3:51오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/45 "2023-12-14T15:51:14Z")

</div>

걱정 마, 제이! 수정해줘서 고마워.

아, 그리고 아직 보지 못했으면, 코드에 디버그 메시지를 남겨둔 것 같아. 😄

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [1월 14, 2024, 5:53오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/46 "2024-01-14T17:53:15Z")

</div>

최신 빌드에서 다음 오류가 발생하고 있습니다. 다만, 익명 상태로 볼 때만 발생하며, 이로 인해 사이트가 완전히 로드되지 않습니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/b/6/eb6546f8fc77616810fe8b946a135fa462b6011a.jpeg)

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [1월 14, 2024, 6:22오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/47 "2024-01-14T18:22:08Z")

</div>

> [@pfaffman](#):
>
> 이것을 누가 한 번 결제했는지 기억이 나지 않네요

저였어요! 다만 지금은 적극적으로 사용하지는 않고 있습니다.

> [@davidkingham](#):
>
> 최신 빌드에서 다음과 같은 오류가 발생하는데, 익명으로 볼 때만 나타나며 사이트가 완전히 로드되지 않습니다:

보고해 주셔서 감사합니다, David.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [1월 15, 2024, 4:06오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/48 "2024-01-15T16:06:18Z")

</div>

> [@nathank](#):
>
> 제가 맞습니다!

아하! 이 주제를 작성한 사람이 당신인 이유를 설명해 줄 수 있겠네요!

> [@davidkingham](#):
>
> 최신 빌드에서 다음 오류가 발생하는데, 익명 상태로 볼 때만 발생하며 사이트가 완전히 로드되지 않습니다:

아쉬군요. 이전 변경 사항으로 인해 모든 것이 최신 상태로 업데이트되었을 거라고 생각했거든요.

저도 대시보드에서 비슷한 작업을 하고 있어서, 곧 이 문제의 해결책을 발견할 가능성이 높습니다. 우선순위를 높이기 위해 예산과 함께 저에게 연락해 주세요.

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [1월 15, 2024, 4:38오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/49 "2024-01-15T16:38:54Z")

</div>

제이, 서두를 필요 없어요. 그 기능 중 아주 작은 부분만 사용했고, 전혀 중요하지 않은 부분이거든요.

---

<div class="post-metadata">

### Author: ![45thj5ej](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@45thj5ej](https://meta.discourse.org/u/45thj5ej)
#### Post date: [4월 2, 2024, 4:04오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/50 "2024-04-02T16:04:29Z")

</div>

anon 설정을 `/home`으로 지정했는데, 로그인하지 않은 상태에서 페이지를 새로고침하면 `https://forums.mysite.com/`의 기본 디렉터리에서 다음과 같은 오류가 발생합니다.

 ![cccccccc](https://global.discourse-cdn.com/meta/original/4X/9/0/e/90e5a2c62e40c278725eb31167c1540f343a320f.png)

비공개 페이지는 아니며, 로그인한 상태에서는 정상적으로 작동합니다. 다른 사람이 게스트로 직접 URL에 접근할 수 있는지 확인해 보았습니다.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [4월 2, 2024, 4:06오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/51 "2024-04-02T16:06:08Z")

</div>

`/home/`라는 URL은 존재하지 않습니다. 그냥 `/`로 설정하시겠습니까?

[https://meta.discourse.org/home](https://meta.discourse.org/home)를 참고하세요.

---

<div class="post-metadata">

### Author: ![45thj5ej](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@45thj5ej](https://meta.discourse.org/u/45thj5ej)
#### Post date: [4월 2, 2024, 4:06오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/52 "2024-04-02T16:06:53Z")

</div>

![gggg](https://global.discourse-cdn.com/meta/original/4X/2/d/b/2db1bd0487ef75a5fff35374bea376d7191438ce.png)

이것은 `/home` 페이지입니다.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [4월 2, 2024, 4:07오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/53 "2024-04-02T16:07:29Z")

</div>

URL을 보내주시면 확인해 드릴게요.

---

<div class="post-metadata">

### Author: ![45thj5ej](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@45thj5ej](https://meta.discourse.org/u/45thj5ej)
#### Post date: [4월 2, 2024, 4:08오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/54 "2024-04-02T16:08:24Z")

</div>

개인 메시지 보냈어요! 감사합니다.

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [4월 5, 2024, 10:51오전 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/55 "2024-04-05T10:51:47Z")

</div>

안녕하세요 @pfaffman - 이 말은 이 TC를 조금 수정해야 한다는 뜻인가요?

> <https://github.com/discourse/discourse/pull/26291>
>
> This PR adds a theme modifier and route so that custom themes can opt to show th…eir own homepage. To use it, do the following: 
> 
> \### 1. Add a modifier to your theme (or component) for \`custom\_homepage\`
> \`\`\`json
> {
> "name": "Your theme name",
> "component": true,
> "modifiers": {
> "custom\_homepage": "true"
> }
> }
> \`\`\`
> \### 2. add a component in the \`custom-homepage\` connector. 
> 
> By default, when the modifier is added, admins will see an info alert as the homepage: 
> 
> \<img width="1419" alt="image" src="https://github.com/discourse/discourse/assets/368961/4102c4e8-0111-4bc5-af82-74d4440d0559"\>
> 
> 
> Themes or plugins can add elements to the \`custom-homepage\` plugin outlet. For example, a theme can add a file under \`javascripts/connectors/custom-homepage/home.hbs\` containing "Hey there!", and the homepage will display that component: 
> 
> \<img width="1348" alt="image" src="https://github.com/discourse/discourse/assets/368961/72e900f6-1361-4419-a49d-190395a5d4e5"\>
> 
> Note that this theme modifier respects the user's selected homepage (from Preferences \> Interface), if the user has picked a specific route as their homepage, that route will be shown to them.

---

<div class="post-metadata">

### Author: ![45thj5ej](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@45thj5ej](https://meta.discourse.org/u/45thj5ej)
#### Post date: [4월 6, 2024, 6:03오전 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/56 "2024-04-06T06:03:27Z")

</div>

중요하다면 말씀드리자면, 이 컴포넌트에 대해 여전히 위에서 언급한 문제가 있습니다.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [4월 6, 2024, 6:37오전 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/57 "2024-04-06T06:37:55Z")

</div>

그것이 바로 눈에 띄지는 않습니다.

아마도 이것이 관련이 있을까요?

> [@45thj5ej](#):
>
> anon 설정을 `/home`으로 설정했는데, 로그아웃 상태에서 페이지를 새로고침하면 `https://forums.mysite.com/`의 기본 디렉터리에서 이 문제가 발생합니다.

업그레이드를 해서 문제가 발생하는지 확인해 보는 것이 좋다고 생각합니다.

> [@45thj5ej](#):
>
> , 여전히 이 컴포넌트에 대해 위에서 언급한 문제가 있습니다.

루트를 추가하는 테마 컴포넌트가 커밋에 설명된 대로 홈 페이지를 변경해야 한다고 생각합니다. 모든 사용자에게 홈 페이지가 변경되기를 원하시나요, 아니면 일부 사용자만 변경되기를 원하시나요?

---

<div class="post-metadata">

### Author: ![45thj5ej](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@45thj5ej](https://meta.discourse.org/u/45thj5ej)
#### Post date: [4월 8, 2024, 1:51오전 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/58 "2024-04-08T01:51:00Z")

</div>

> [@pfaffman](#):
>
> 업그레이드를 해서 깨진 건지 확인해 보는 게 좋을 것 같아요.

안녕하세요, 여전히 깨져 있습니다.

> [@pfaffman](#):
>
> 모든 사용자에게 메인 페이지가 바뀌길 원하시나요, 아니면 일부 사용자에게만?

계정에 로그인하지 않은 모든 사용자입니다. 익명 사용자들 말이에요.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [4월 8, 2024, 3:00오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/59 "2024-04-08T15:00:38Z")

</div>

아쉽네. 문제의 원인이 다른 테마 컴포넌트인지 이 컴포넌트인지 확신이 없는데, 파악하는 데 시간이 좀 걸릴 것 같아.

예산이 있는 사람이 이 문제로 어려움을 겪고 있다면, 내가 파악할 수 있는 한 최선을 다해 도와볼게.

---

<div class="post-metadata">

### Author: ![45thj5ej](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@45thj5ej](https://meta.discourse.org/u/45thj5ej)
#### Post date: [4월 17, 2024, 3:27오후 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/60 "2024-04-17T15:27:20Z")

</div>

> [@pfaffman](#):
>
> 그걸 파악하는 데 시간이 좀 걸릴 거야.

좋아 보여!

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [4월 19, 2024, 6:34오전 UTC](https://meta.discourse.org/t/custom-homepage-for-groups/199623/61 "2024-04-19T06:34:18Z")

</div>

사이드바의 "모든 카테고리"를 클릭하면 일반 카테고리 페이지가 표시되는데, 이 기능은 꽤 마음에 듭니다.

다만, 기본 그룹을 다시 변경하기 전까지는 검색 배너가 표시되지 않는 것 같습니다.

기본 그룹을 전환하지 않고도 커스텀 홈 페이지와 메인 카테고리 페이지에서 이 기능이 호환되도록 만들 수 있을까요?

저는 Air 테마를 사용 중입니다. 사이드바에서 "모든 카테고리"를 클릭하면 모던 카테고리 박스와 그룹이 표시되지만, 검색 배너만 없습니다.

정말 게임 체인저입니다.

[이전 페이지](https://meta.discourse.org/t/custom-homepage-for-groups/199623.md?page=2)

[다음 페이지](https://meta.discourse.org/t/custom-homepage-for-groups/199623.md?page=4)
