오른쪽 사이드바 블록

:discourse2: 요약 Right Sidebar Blocks는 주제 목록 오른쪽에 설정 가능한 블록 목록으로 구성된 사이드바를 표시합니다.
:eyeglasses: 미리보기 Discourse Theme Creator에서 미리보기
:hammer_and_wrench: 저장소 링크 https://github.com/discourse/discourse-right-sidebar-blocks
:open_book: Discourse 테마에 처음이신가요? Discourse 테마 사용 입문 가이드

이 테마 컴포넌트 설치

기능

이 컴포넌트에는 사이드바에 표시할 수 있는 몇 가지 블록이 포함되어 있습니다:

  • popular-tags
  • top-contributors
  • recent-replies
  • category-topics
  • custom-html
  • category-list
  • subcategory-list
  • upcoming-events-list*
  • minimal-gamification-leaderboard**

:information_source: Top Contributors 목록이 채워지려면 사용자 디렉터리가 활성화되어 있어야 합니다. 목록이 비어 있다면 관리자 설정에서 enable user directory를 검색하여 활성화되어 있는지 확인하세요.

* Calendar 플러그인과 함께 사용할 때만 사용할 수 있습니다.
** Gamification 플러그인과 함께 사용할 때만 사용할 수 있습니다.

사이드바 블록으로 다른 Ember 컴포넌트도 사용할 수 있으며, 올바른 이름만 사용하면 됩니다. 예를 들어, 코어에는 signup-cta Ember 컴포넌트가 포함되어 있으며, 이를 사이드바에서 그대로 사용할 수 있습니다. 매개변수 집합을 기대하는 컴포넌트는 사용할 수 없지만, 별도의 테마에서 자체 Ember 컴포넌트를 구축하고 사이드바의 blocks 설정에서 이름만 참조하여 사용할 수 있습니다.

제공된 블록의 일부 기능은 매개변수를 통해 제어할 수 있습니다.

이름 설명 기본값 적용 대상
count 결과 수 제한 다양 숫자 custom-html 제외 모두
excerptLimit 각 답변 발췌문의 길이 제한 150 숫자 recent-replies
id 카테고리 ID 카테고리 ID (category-list는 쉼표로 구분) category-topics, category-list
content 표시할 내용 html custom-html
scopeToCategory 카테고리 또는 하위 카테고리 X에서만 표시 카테고리 ID popular-tags
excludedTags 제외할 태그 목록 태그 이름 popular-tags
displayInSpecificCategories 위젯을 표시할 카테고리 목록 전체 쉼표로 구분된 숫자 popular-tags
id 리더보드 ID 숫자 minimal-gamification-leaderboard
tag 표시할 태그 태그 이름 tag-topics
period 상위 주제 시간 기간 weekly all, yearly, quarterly, monthly, weekly, daily top-topics
title 블록 제목 다양 문자열 tag-topics, category-list, top-contributors
excludedGroupNames 지정된 그룹 제외 그룹 이름 top-contributors
order 기여자 정렬 문자열 (likes_received 또는 likes_given) top-contributors
period 상위 기여자 시간 기간 yearly all, yearly, quarterly, monthly, weekly, daily top-contributors
includeSubcategories 하위 카테고리 이벤트 포함 false false, true upcoming-events-list
upcomingDays 제공된 값보다 이전에 시작된 이벤트 180 숫자 upcoming-events-list
timeFormat 이벤트 날짜/시간 형식 LT momentjs 형식 upcoming-events-list

설정

이름 설명
blocks
show in routes 고급 사용자 전용: 사이드바를 선택된 루트로 제한합니다.
예: discovery.latest, discovery.unread, discovery.new, discovery.top, tag.show, “c/category-slug” (카테고리의 경우), “tag/sample-tag” (태그의 경우).
비어 있으면 사이드바가 모든 목록 루트에 표시됩니다.

blocks: 표시할 블록을 선택하고 순서를 조정합니다

show_in_routes: 사이드바를 표시할 주제 목록 루트를 결정합니다. 기본적으로 /categories를 제외한 모든 탐색(discovery) 루트에 표시됩니다.

번역 기본값
top_contributors.heading 상위 기여자
top_contributors.view_all 전체 보기
popular_tags.heading 인기 태그
popular_tags.view_all 전체 보기
recent_replies.heading 최근 답변
subcategory_list.heading 하위 카테고리
top_topics.heading 상위 주제
category_list.heading 카테고리

스크린샷

컴포넌트는 매우 기본적인 스타일링만 포함된다는 점에 유의하세요. 컴포넌트를 사용하는 관리자가 자신의 테마에서 자체 스타일링을 추가할 것으로 가정합니다.

상호작용

Discourse Calendar 플러그인과 함께 사용할 경우, 다가오는 이벤트를 위한 사이드바 블록을 추가할 수 있습니다. 블록 이름은 upcoming-events-list이며, 날짜 형식은 이 구문을 따르도록 사용자 지정할 수 있습니다(예: MMMM D, YYYY). 미래까지 얼마나 멀리 볼지 및 하위 카테고리 이벤트가 포함되는지 여부도 설정할 수 있습니다(위 표 참조)


:discourse2: 우리가 호스팅하고 있나요? 테마 컴포넌트는 Pro, Business, Enterprise 플랜에서 사용 가능합니다.

65개의 좋아요
Discourse Gamification
Sidebar for Subcategories
Add User leaderboard in sidebar
FKB Pro - Social theme
Setup Continuous Integration using GitHub Actions
Blogroll (feature request)
How to extend the Discourse sidebar?
How to include a YouTube video or video widget on the community home page?
Add social media handles on home page
Alternate presentation of sub-categories which puts the _top_ category first?
Discourse Bars :beers: :cocktail: (a sidebar framework)
FKB Pro - Social theme
Looking for the perfect theme
Discourse Bars :beers: :cocktail: (a sidebar framework)
Discourse Bars :beers: :cocktail: (a sidebar framework)
Add right sidebar gamification mini-leaderboard
Add right sidebar gamification mini-leaderboard
Pyx's Modern Theme
Homepage Blocks
Topic List Excerpts
🏷️ Bars Tag List Component
Discourse Bars :beers: :cocktail: (a sidebar framework)
Creating a 'Blocks' API for injecting content
FKB Pro - Social theme
Recent replies takes 2 seconds to display
Leaderboard in homepage
Discourse Gamification Plugin in the Header
Discourse Calendar updated to use fullcalendar 6
I'm getting errors when I switch categories too quickly
目前我感觉看到的最好看的Discourse主题,有没有谁能爱心奉献一个
Discourse Sidebar Blocks
Tag Icons + Tag Banners + Right Sidebar Blocks
Topic List Previews (TLP)
Hide admin user from user-directory and top contributors
Feedback wanted: userscript to theme component/plugin, or possible core sidebar browsing idea?
Have the upcoming-events block respect the subcategory filter when in Category lists
A reddit-ish theme for Discourse
Cache the right hand sidebar contents
When to switch themes/plugins to `.gjs`?
Adding ‘hot topics’ to the Sidebar
Custom Components -- add button or text at any plugin outlet
Top Posters Widget?
Creating a Top 20 leaderboard for a specific date range
Connectors not rendering
Sidebar for Subcategories
Displaying tags along with categories
FKB Pro - Social theme
Creating and managing events
Customizing your site with existing theme components
Creating and installing plugins?
FKB Pro - Social theme
Adding a recent comments widget
How do you force keep open the sidebar?