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?
È possibile far apparire la barra laterale sui dispositivi mobili come comprimibile? Una piccola icona potrebbe apparire sul lato destro per mostrare e nascondere la barra laterale.
Sono molto soddisfatto di questo componente dal punto di vista funzionale, ma aggiunge molti passaggi alla creazione di un nuovo tag, e poi c’è il problema degli argomenti di descrizione non elencati, un po’ ingombranti.
Mi piacerebbe che la descrizione provenisse da un campo “descrizione lunga” aggiunto alla descrizione breve che si può ottenere con la in una pagina di tag, piuttosto che da un post magico!
Sto eseguendo la versione 3.3.0.beta2 e questo componente visualizza correttamente la barra laterale dei tag quando selezioni inizialmente il tag, ma la barra laterale non viene rimossa quando selezioni un tag diverso. Puoi vederlo accadere con l’anteprima su theme-creator.discourse.org. Ecco come appare quando visiti il tag art:
Vedo che Discourse Category Sidebars è stato mantenuto molto più aggiornato di questo componente. Potrei provare ad applicare le stesse modifiche a questo.
Aggiornamento: Vedo che le descrizioni dei tag supportano l’HTML di questi tempi, quindi il componente Tag Banners è probabilmente migliore per i miei scopi. Grazie comunque!
La funzionalità di questo componente è stata unita a Topic List Sidebars (supporta le barre laterali di categorie e tag), quindi si prega di passare quando ne avrai la possibilità poiché non apporterò più aggiornamenti a questo. Questo componente continuerà a funzionare per ora, ma potresti riscontrare problemi in futuro.