Use tag and category banner components together

Really excellent theme component! Is there any way to display banners for lists that are using both a category and tag simultaneously?

1 个赞

Not at the moment… at some point it probably does make sense to combine this tag component with the category banner component… then where the banners are shown can probably be handled in the theme settings if someone wants it one way or another.

3 个赞

I think I found a way. I will post a PR tonight probably if I manage to get it work.

Edit: Alright PR is ready
https://github.com/discourse/discourse-tag-banners/pull/1

5 个赞

Fantastic! :smiley: Thanks @radek3911!

3 个赞

我刚刚对这个组件进行了一次更新,使其能更好地与 分类横幅 集成。

当安装了这两个组件,并且你筛选了某个分类和一个标签时,横幅将不再堆叠,而是标签名称会显示在分类横幅内:

当只筛选某个标签时,标签横幅仍会按预期显示。

10 个赞