Questo componente del tema visualizza i tag più popolari di una categoria in una barra laterale fissa su schermi più ampi di 767px (la maggior parte dei tablet e dei dispositivi desktop).
Devi attivare l’impostazione mostra filtro per tag sul tuo sito affinché questo componente del tema funzioni.
Ogni barra laterale è racchiusa in una classe che contiene il nome della categoria; ad esempio, per la categoria UX sarebbe .ux-sidebar. Puoi utilizzare queste classi per applicare stili alle singole barre laterali.
Il tag HTML nelle pagine con barre laterali include anche una classe aggiuntiva, così puoi usare html.custom-sidebar per applicare stili a tutte le pagine che hanno una barra laterale.
this would make an incredibly powerful navigation tool if it showed the most common in each category and tag-page and it was positioned in a banner, or other item at the top of the page.
In case you weren’t aware, there is already an optional tag drop-down in vanilla Discourse (shown in the image above) which appears above the topic list.
Can you describe this problem a little more? The sidebar only appears for one category and no others?
Do all the categories you’re trying have topics with more than 3 tags? the sidebar won’t show if there are less than 3 tags within a specific category.
Yes, I think I can add some support for other pages
There is no problem when i click directly (same page), but when i right click, open in new tab, there is message “Oops! That page doesn’t exist or is private.”
I’ve added a feature to optionally show the tag sidebar on the top menu pages (latest, top, new, etc). It’s disabled by default, you can enable it in the theme component’s settings.
That was my mistake, I didn’t consider subcategories and restructure the URL to fit. It’s fixed now.
That URL shows all the tags across all categories, when you’re within a category and click a tag in the sidebar I wanted to make it so you’re viewing that tag within the context of the current category.
I’m not entirely sure what you mean, can you give me a specific example?
These are all general CSS changes… if you want to make more style changes like these I suggest following a few CSS tutorials, CSS first steps - Learn web development | MDN is a good free one!
would be really cool if the max # of tags was increased to 100 and displayed in a responsive-filled height of a bubble text cloud sorted alphabetically. in other words, the more popular a tag the larger its font size. the “top 100” tags.
also, would be good if it was positioned horizontally above category lists for mobile. i really want this for mobile.
Sfortunatamente, questo componente è in conflitto con Discourse Tag Sidebars. Quando abilito entrambi, ottengo tutti i tag schiacciati in un’unica riga, così:\n\n
\n\nE le barre laterali dei tag non vengono visualizzate affatto.\n\nQuesto è sfortunato, perché questi dovrebbero essere complementari: l’elenco dei tag per la vista “tutti i tag” (e forse anche “nessun tag”), e la barra laterale per i tag specifici. Infatti, forse potrebbero essere combinati in un unico componente?