Discourse Tag Sidebars

:warning: This component has been deprecated, please check out Topic List Sidebars for the same functionality, and more!

This theme component takes a topic and applies it as a sidebar for a tag’s topic list. These sidebars are only visible when the browser is 767px or wider (most tablets and monitors).

Want sidebars for categories? Check out Discourse Category Sidebars.

What can I do with this theme component?

  • Choose a topic and display its content as a sidebar for a tag.

  • Choose for the sidebars to appear on the left or the right of the topic list.

How do I configure it?

Simply insert the tag name and the id of the topic (e.g. example.com/t/example-topic/57)

I recommend creating sidebar topics in their respective tags, closing the topic so there are no replies, and unlisting it (so it doesn’t appear in the topic list).

Note that you can not use a topic in a private category as a sidebar in a public area.

Custom CSS

Each tag sidebar is wrapped with a class that contains the tag name, so for the test tag that would be .tag-sidebar-test. 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.

Install this theme component

41개의 좋아요

Your sidebar themes are amazing

It would be great to have an option to display a sidebar in a topic based on tags. With multiple tags the divs could be simply stacked on top of each other.

2개의 좋아요

minor nit. it seems that external links in the side bar do not follow setting to open in new tab, so they open in same window.

6개의 좋아요

This is a really cool idea Kris, how hard would it be to move it from the sidebar to the top? I would love to have it where the category description normally goes so it always displays and doesn’t resize the container. I use topic list preview with the tile layout and this makes all the images smaller and wastes space in my case.

8개의 좋아요

훌륭합니다! 이 테마 컴포넌트는 많은 사용자가 요청했던 태그 설명 기능을 해결해 줍니다.
사이드바 대신 내비게이션 바 위에 표시할 수 있는 옵션도 있으면 좋겠습니다.

6개의 좋아요

카테고리는 정상적으로 작동하는 것 같지만, 태그용 기능은 현재 우리에게 문제가 있는 것으로 보입니다.

3개의 좋아요

코어에서 라우트가 /tags/에서 /tag/로 변경된 것 같습니다. 이를 반영하여 테마를 업데이트했습니다.

8개의 좋아요

아마도 우리 커스텀 CSS와 관련이 있을 것 같은데, 공간을 만들어 놓고는 실제로 링크를 추가하지 않는 것 같습니다

2개의 좋아요

크리스님, 안녕하세요.

정말 흥미롭네요. 이 기능이 문제점이나 사이트 디자인 이슈를 해결할 수 있을 것 같아 피드백을 받고 싶었습니다.

제가 만들고 싶은 것은 FAQ를 위한 거의 정적인 페이지들이 사이드바에 배치된 포럼 중심 웹사이트입니다. 아래 이미지와 같은 형태입니다: 이 구조에 대해 태그 사이드바가 적합하다고 보시는지 의견을 듣고 싶습니다. FAQ에 나열하고 싶은 특정 게시물들에 "FAQ"라는 태그를 생성하면 해당 게시물들이 사이드바에 표시될 것 같은데, 사이드바에서 목록 순서를 제어할 수 있을까요?

어떻게 생각하시나요? 이 테마 구성 요소를 사용해 본 경험이 있는 다른 분들도 의견을 남겨주시면 좋겠습니다.

2개의 좋아요

이 컴포넌트가 더 이상 작동하지 않는 것 같습니다. 재현 가능한 분이 계신가요?

2개의 좋아요

모바일 기기에서 사이드바를 접을 수 있도록 만들 수 있을까요? 오른쪽에 작은 아이콘을 배치하여 사이드바를 표시하거나 숨길 수 있도록 하면 됩니다.

3개의 좋아요

기능적으로 이 컴포넌트에 매우 만족하지만, 새 태그를 만드는 데 많은 단계를 추가합니다. 또한, 다루기 다소 번거로운 미등록 설명 토픽 문제도 있습니다.

태그 페이지에서 :wrench: 을 통해 볼 수 있는 짧은 설명에 ‘긴 설명’ 필드를 추가하여 설명이 그곳에서 가져오도록 되길 원합니다. 마법 같은 게시글을 통해 가져오는 것이 아니라 말이죠!

1개의 좋아요

3.3.0.beta2 버전을 사용 중인데, 태그를 처음 선택할 때 태그 사이드바가 올바르게 표시되지만 다른 태그를 선택해도 사이드바가 제거되지 않습니다. 이 현상은 theme-creator.discourse.org의 미리보기에서 확인할 수 있습니다. art 태그를 방문했을 때의 모습은 다음과 같습니다:

…하지만 (예를 들어) code 태그로 전환하면 사이드바가 변경되지 않습니다:

Discourse Category Sidebars가 이 컴포넌트보다 훨씬 더 최신 상태로 유지되고 있다는 것을 확인했습니다. 이 컴포넌트에도 동일한 변경 사항을 적용해 보겠습니다.

업데이트: 요즘 태그 설명에 HTML이 지원된다는 것을 알게 되었으므로, 제 목적에는 Tag Banners 컴포넌트가 더 적합할 것 같습니다. 그래도 감사합니다!

이 컴포넌트의 기능은 Topic List Sidebars (카테고리 및 태그 사이드바 모두 지원)로 통합되었습니다. 더 이상 이 컴포넌트에 대한 업데이트를 하지 않을 예정이므로, 가능하시다면 해당 컴포넌트로 전환해 주십시오. 이 컴포넌트는 당분간 계속 작동하겠지만, 향후 문제가 발생할 수 있습니다.

3개의 좋아요

이 주제는 26일 후 자동으로 닫혔습니다. 더 이상 답변을 남길 수 없습니다.