Formerly “Discourse Category Sidebars” — the name of this theme component has been updated to Topic List Sidebars now that it supports both categories and tags.
Summary
Topic List Sidebars takes a topic and applies it as a sidebar for a category or tag’s topic list.
This theme component takes a topic and applies it as a sidebar for a category or tag’s topic list. These sidebars are only visible when the browser is 767px or wider (most tablets and monitors).
Choose a topic and display its content as a sidebar for a category or tag.
Set a sidebar to be displayed on the /latest, /new, /unread, and /top pages by using all as the category name in your settings.
Choose for the sidebars to appear on the left or the right of the topic list.
By default a category’s sidebar will also display for all its subcategories unless a subcategory has its own sidebar defined (you can disable this by unchecking the inherit parent sidebar setting).
How do I configure it?
Choose your categories and tags, and add the id of the topic (e.g. example.com/t/example-topic/57) that you would like to use to populate the sidebar’s content
I recommend creating sidebar topics in their respective categories/tags, closing the topic so there are no replies, and unlisting it (so it doesn’t appear in the topic list).
Note that you cannot use a topic in a private category as a sidebar in a public category (you can technically, but users without access to that private topic will just see a empty sidebar!).
Settings
Name
Description
sidebars
Add and remove sidebars
sidebar side
Choose from Left or Right
inherit parent sidebar
If checked subcategories will inherit their parent category’s sidebar (unless the subcategory has its own sidebar assigned).
When unchecked subcategories will only display a sidebar if one is specified.
stick on scroll
When checked sidebar has a sticky position on scroll
Developer Notes
Each category sidebar is wrapped with a class that contains the category slug, so for the staff category that would be .category-sidebar-staff. You can use these classes to style the individual sidebars.
The body tag on pages with sidebars also has a class added so you can use body.custom-sidebar to apply styles on all pages that have a sidebar.
Credits
Special thanks to @xrav3nz for laying the groundwork to make this component possible!
Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.
Since I am using the header submenu plugin, A part of the text is covered by my header bar. It would be great if it was possible to add extra margin/offset or whatever it’s called for the case when additional elements before the header are covering the sidebar’s content.
Also: is there any way to keep the category drop down menu above the sticky sidebar’s content? that would make it easy for users to jump between categories quickly.
altogether I think the category sidebar is a great plugin and has huge potential to add useful information to the forum structure!
1 - 사용자가 포럼을 둘러보며 페이지를 이동할 때, 사이드바에 포함된 게시물의 최신 버전이 항상 확인되도록 설정할 수 있을까요? 현재 사이드바의 콘텐츠는 페이지 새로고침 시에만 업데이트되는 것 같습니다. 불행히도, 내용이 거의 변하지 않는 콘텐츠는 사용자(특히 활발하게 활동하는 사용자)들에게 오래된 것으로 인식되기 시작하므로, 가능하다면 사이드바에 연결된 주제를 자주 업데이트하고 싶습니다. (마찬가지로, 해당 페이지 옵션에서 주제 ID가 변경되면 다음 페이지 뷰에서 이를 반영하도록 하면 좋겠습니다.) 페이지/뷰당 추가 로딩은 괜찮지만, 다른 사용자들에게 부담이 될까 봐 걱정되신다면 현재와 같은 방식으로 작동하도록 하는 “게시물 내용 캐시” 옵션을 추가해 주실 수 있을까요?
2 - 사이드바 하나당 주제 하나 이상에서 콘텐츠를 가져오거나 연결할 수 있을까요? 예를 들어 ‘최신’ 페이지에서는 33, 55번 주제(그 순서대로)의 콘텐츠를 표시하고 싶을 수 있습니다. 이렇게 하면 페이지별로 다른 콘텐츠를 표시하면서도, 모든 사이드바 하단에 표시되기를 원하는 공통 정보/링크를 포함할 수 있어 매우 유용할 것입니다.
3 - 플러그인을 확장하여 사이트 전체에서 사용할 수 있게 해줄 수 있을까요? 현재는 특정 페이지에서만 사용할 수 있는 것 같습니다. 이상적으로는 이 기능을 포럼 전체의 모든 주요 섹션/페이지에서 사용하고 싶습니다. (아마도 태그 사이드바 플러그인을 이 플러그인과 함께 사용하면 더 정밀한 제어(예: 개별 태그 및/또는 주제)가 가능할 것입니다. 두 가지를 결합하면 매우 강력한 사이드바 패키지가 될 수 있을 것 같아요!!)
4 - 사이드바 너비 옵션과 함께 설정 가능한 잘림/표시 안 함 지점도 추가할 수 있을까요? CSS 변경을 통해 가능하기 때문에 큰 문제는 아니지만, 옵션에 포함되어 있으면 좋겠다고 생각합니다.
5 - 마지막으로… 설문을 작동하게 해주시겠어요? 사용자가 사이드바에서 바로 설문에 투표할 수 있다면 정말 훌륭할 것 같아요!!! 사이드바에 이러한 동적 콘텐츠를 포함하면 사용자가 흥미를 느끼고, 자동으로 무시할 가능성이 줄어든다고 생각합니다.
위 내용들이 모두 반영된다면, 이 플러그인은 코어에 포함되거나 공식 DC 플러그인으로 채택될 좋은 후보가 될 것이라고 생각합니다. 제 생각에는 이 플러그인이 사람들이 자신의 포럼에 개성을 부여하는 데 도움이 될 것이며, 사람들이 재미있고 흥미로운 방식으로 이를 활용할 것이라고 확신합니다!
이 테마 컴포넌트의 작동 방식을 잘못 이해하고 있을 수도 있지만, 왼쪽에 주제 목록을 표시하고 목록에서 주제를 클릭하면 오른쪽에 게시글이 표시되도록(그리고 왼쪽의 주제 목록은 고정된 상태로 유지되도록) 사용할 수 있을까요? 카테고리를 볼 필요는 없습니다. Flarum과 비슷한 모습이 될 것입니다.