Componente de tema realmente excelente! Existe alguma maneira de exibir banners para listas que utilizam simultaneamente uma categoria e uma tag?
1 curtida
No momento não… em algum momento provavelmente fará sentido combinar este componente de tag com o componente de banner de categoria… aí, onde os banners são exibidos, provavelmente poderá ser tratado nas configurações do tema, caso alguém queira de um jeito ou de outro.
3 curtidas
Acho que encontrei um caminho. Vou postar um PR hoje à noite, provavelmente, se conseguir fazê-lo funcionar.
Edição: Tudo bem, o PR está pronto.
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 curtidas
Fantástico! Obrigado @radek3911 !
3 curtidas
Acabei de fazer uma atualização neste componente que o integra melhor com Banners de Categoria
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 ambos os componentes estiverem instalados e você estiver filtrado para uma categoria e uma tag, em vez de empilhar os banners, agora o nome da tag será mostrado dentro do banner da categoria:
O banner da tag ainda aparecerá como esperado quando filtrado apenas para uma tag.
10 curtidas