This component has been deprecated, please check out Discourse 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).
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.
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.
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.
Awesome! This theme component solves the need for a tag description many users asked for.
Would be great if there’s also the option to have it above the navbar, instead of having it in the side.
This looks really interesting. It seems like this might solve a problem / site design issue and wanted to get your feedback.
here is what I’m trying to create - a forum centric website with a sidebar of largely static pages for a FAQ. Like this image below: Would you agree that your Tag sidebar would work for this - it seems like all I would need to do is create a tag for “FAQ” for the specific posts that I want listed in the FAQ - and they would be put there (any control of the order of the listing in the sidebar?).
What do you think? Anyone else with experience with this theme component want to comment?
Is it possible to make the sidebar appear in mobile devices as a collapsable? A small icon can appear on the right hand side to show and hide the sidebar.
I’m very happy with this component functionally, but it adds a lot of steps to creating a new tag, and then there’s the problem of the kind-of-unwieldy unlisted description topics.
I would love for the description to come from a “long description” field added to the short description one can get with the on a tag page, rather than a magic post!
I’m running 3.3.0.beta2, and this component correctly displays the tag sidebar when you first select the tag, but the sidebar is not removed when you select a different tag. You can see this happen with the preview on theme-creator.discourse.org. Here’s how it looks when you visit the art tag:
I see that Discourse Category Sidebars has been kept much more up-to-date than this component. I might have a go at applying the same changes to this one.
Update: I see that tag descriptions support HTML these days, so the Tag Banners component is probably better for my purposes. Thanks anyway!
This component’s functionality has been merged into Discourse Topic List Sidebars (supports both category and tag sidebars), so please switch when you have the chance as I’ll no longer be making updates to this one. This component will continue to work for now, but you may encounter issues in the future.