사용자 정의 카테고리 박스

:discourse2: 요약 Custom Category Boxes 컴포넌트는 카테고리 페이지에서 사용자 지정 배경을 가진 박스 형태로 카테고리를 렌더링합니다. show_banner가 선택된 경우, 각 카테고리 페이지에도 카테고리 배너가 렌더링됩니다.
:eyeglasses: 미리보기 Discourse Theme Creator에서 미리보기
:hammer_and_wrench: 저장소 링크 https://github.com/discourse/discourse-custom-category-boxes-component
:open_book: Discourse 테마가 처음이신가요? Discourse 테마 사용 입문가 가이드

컴포넌트 설치

기능

:information_source: 이 컴포넌트가 작동하려면 desktop category page style(데스크톱 카테고리 페이지 스타일)이 categories with Featured Topics(주요 주제 포함 카테고리) 또는 Boxes with Featured Topics(주요 주제 포함 박스) 중 하나로 설정되어 있어야 합니다.

선택할 수 있는 옵션은 4가지입니다. 기본값은 halftones(반점)입니다.

Halftone 배경

Halftone option

Crosshatch 배경

Crosshatch option

없음(None)

None option

사용자 지정(Custom)

자체 아트워크로 이 효과를 생성하려면 설정 페이지에서 투명한 배경의 서로 다른 4개의 .png 파일 또는 전통적인 .jpg 파일을 업로드하세요. 각 업로드 시 custom-0부터 마지막까지 custom-3까지의 명명 규칙을 사용하세요. 카테고리 배경 설정으로 custom(사용자 지정)을 선택했는지 꼭 확인하세요.

Custom option

설정

이름 설명
category background(카테고리 배경) 4가지 옵션 중 하나를 선택합니다
show banner(배너 표시) 선택 시 카테고리 박스와 일치하는 스타일의 배너가 각 카테고리 페이지에 표시됩니다.
번역 기본값
more_topics 더 많은 주제…

31개의 좋아요

Simple, clean. Nice component. Thanks.

3개의 좋아요

Great plugin! I have been searching for it for a long time, thank you.

1개의 좋아요

I think it should have auto-resize for picture or limit

3개의 좋아요

thanks for the theme :+1:

may you consider slight changes so that the theme also works for rtl direction without any edits? (as edits go away after updates).

also where can I translate this string: “more topics …”. it was neither in the admin customize section nor in the theme :thinking: .

3개의 좋아요

Glad you enjoy the component. I have added translation for more topics.... As for the rtl direction it is something I will look into.

Until then, make sure you copy your customization and add it back after updating the component. :smile:

3개의 좋아요

thanks :blush:

for this, there’s only one line which needed to be commented:

a #custom-category-title{ text-align: left;}

btw, I noticed that these category boxes won’t apply for subcategories. is it possible that the same rules also applies to subcategory boxes?

2개의 좋아요

I believe you might be able to create your changes as a seperate theme component with Overides in your component plugin.

you are right, and I’ll do that for this case.

but I believe that when the whole discourse application is compatible with both rtl and ltr directions, it means that “details matter for the creators” and “they want to build the best service, not just a service”. well, this can happen for its great themes as well.

2개의 좋아요

I want this theme too but I’m straggling to add it.

Great work on this component!
I am having an issue with it not showing newly added categories properly. I just added the events category and have selected the checkbook to display it and it is not showing on the cats page. Not sure how to go about getting it to display all the cats that each user selected.


이 테마 컴포넌트의 수명 주기가 종료되었음을 알려드립니다. 이 컴포넌트는 더 이상 Discourse 팀의 활성 지원을 받지 않습니다.

1개의 좋아요