Veramente un componente di tema eccellente! C’è un modo per mostrare banner per le liste che utilizzano contemporaneamente una categoria e un tag?
1 Mi Piace
Al momento no… prima o poi probabilmente ha senso combinare questo componente tag con il componente banner di categoria… poi il luogo in cui vengono visualizzati i banner può essere gestito nelle impostazioni del tema, nel caso qualcuno voglia una configurazione o l’altra.
3 Mi Piace
Credo di aver trovato una soluzione. Probabilmente stasera pubblicherò una PR, se riesco a farla funzionare.
Modifica: Ok, la PR è pronta
master ← radek3911:master
merged 03:12PM - 04 Dec 20 UTC
Hello,
I have discovered a bug within this component. To sum it up if you ope… n category and select tag the tag banner wont show because of different routes. If you click the tag and open the tag page (route starting with /tag/) you get the banner, while the categories have route starting with /tags/ and a different controller.
This PR also serves as a feature request to this comment:
https://meta.discourse.org/t/discourse-tag-banners/124240/14
**Please squash commits if you are going to merge...**
Thanks
5 Mi Piace
Fantastico! Grazie @radek3911 !
3 Mi Piace
Ho appena apportato un aggiornamento a questo componente che lo integra meglio con Category Banners
main ← category-integration
opened 07:42PM - 24 Apr 23 UTC
This pairs with the category banner update https://github.com/discourse/discours… e-category-banners/pull/32
This utilizes the category banner component's presence service to determine when and how to render tag banners.
The `<DiscourseTagBanners />` component is mounted in the category banner's `category-banners-after-title` outlet, and the category banner presence dictates whether the component displays `<DiscourseTagBannersTextOnly />` or `<DiscourseTagBannersPresentation />`
The category banner's presence service also determines whether or not the tag banner will show at all in the `above-site-header` and `below-site-header` outlets, so we don't end up with a category banner stacked with a tag banner.

Quando entrambi i componenti sono installati e si è filtrati per una categoria e un tag, invece di impilare i banner, ora il nome del tag verrà mostrato all’interno del banner della categoria:
Il banner del tag apparirà comunque come previsto quando filtrato solo per un tag.
10 Mi Piace