# Discourse Popular Tag Sidebar

**URL:** https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853
**Category:** Theme component
**Created:** [29 בינואר,‏ 2019,‏ 6:07pm UTC](https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853 "2019-01-29T18:07:12Z")
**Posts on this page:** 7
**Page:** 2

<div class="post-metadata">

### Author: ![Hakanto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hakanto/32/246498_2.png) [@Hakanto](https://meta.discourse.org/u/Hakanto)
#### Post date: [15 בפברואר,‏ 2022,‏ 8:42pm UTC](https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853/31 "2022-02-15T20:42:21Z")

</div>

@awesomerobot This is wonderful! Thanks for creating it.

I have an idea for a theme setting. Being able to display the number of topics per tag in the sidebar somewhat like so:

**Popular tags**  
23 done  
5 doing  
5 to-do  
3 no-rush  
2 priority  
1 urgent

Since the component ranks the tags in the sidebar by popularity, I assume it is looking up how many of each tag there are across the category. Being able to admin toggle on/off displaying these numbers would be helpful for certain kinds of categories – perhaps ones where tags are used for basic task management or coordination.

Since the kanban component serves a similar purpose on a more elaborate level, this may not be a priority within this component. Still would be nifty for a lightweight glance at the status of tags within a category.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [15 בפברואר,‏ 2022,‏ 8:59pm UTC](https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853/32 "2022-02-15T20:59:51Z")

</div>

As stated in your dedicated Topic, I don’t believe this is achievable without changes to the back end (in core or a plugin) and possibly the FE too (as a result of those changes). I would welcome those changes though!

Here’s the tip of the iceberg:

> <https://github.com/discourse/discourse/blob/6b393d62c641a2e7cd6c8c24892c220ca1b4f9e0/app/models/tag.rb#L123>

As you can see, the actual counts are discarded, and used only for the order.

I’d be happy to look at this if someone wants to hire me to PR and potentially deal with a lot of knock-on impacts, but it would also require the agreement of Team of course: I may be missing a downside of serializing this extra information …

---

<div class="post-metadata">

### Author: ![lisandro\_iaffar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisandro_iaffar/32/315816_2.png) [@lisandro\_iaffar](https://meta.discourse.org/u/lisandro_iaffar)
#### Post date: [7 בספטמבר,‏ 2022,‏ 6:54pm UTC](https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853/33 "2022-09-07T18:54:46Z")

</div>

This component allowed me to bring parent-category-like dynamism to sub-categories. Ideal for scaling sub-categories if needed to parent-category status while keeping the workflow. Just awesome, thank you so much!!!

Just one observation: it would be cool if, after selecting one tag, the Tag Sidebar could remain visible, to easily navigate to the other tags!  
Right now, after selecting one tag from the sidebar, the Tag Sidebar disappears.

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [18 בנובמבר,‏ 2022,‏ 1:09pm UTC](https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853/34 "2022-11-18T13:09:34Z")

</div>

Do you have any similar plugin that is like Twitter Trending Topics?

---

<div class="post-metadata">

### Author: ![ncaming215](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ncaming215/32/205701_2.png) [@ncaming215](https://meta.discourse.org/u/ncaming215)
#### Post date: [8 בינואר,‏ 2023,‏ 4:20pm UTC](https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853/35 "2023-01-08T16:20:24Z")

</div>

“number of tags” setting not working, at least not for me.

 ![Screen Shot 2023-01-08 at 11.19.47 AM](https://global.discourse-cdn.com/meta/original/4X/6/6/d/66d79a6ed4639ca53b323151b8df14b9674a57ed.jpeg)  
 ![Screen Shot 2023-01-08 at 11.19.56 AM](https://global.discourse-cdn.com/meta/original/4X/a/3/d/a3d40ab32cb16e008b3d16d6c8c535b59c521bcb.png)

---

<div class="post-metadata">

### Author: ![ncaming215](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ncaming215/32/205701_2.png) [@ncaming215](https://meta.discourse.org/u/ncaming215)
#### Post date: [8 בינואר,‏ 2023,‏ 7:02pm UTC](https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853/36 "2023-01-08T19:02:03Z")

</div>

> [@Benjamin\_D](#):
>
> hi Kris !  
> I wonder if the option `number_of_tags` wasn’t lost with this commit ? 🤔  
> [indexof fix · awesomerobot/discourse-popular-tag-sidebar@be3b14e · GitHub](https://github.com/awesomerobot/discourse-popular-tag-sidebar/commit/be3b14e6e7a87daf1449f8f9c381d3cd76ffb297)

Bump. This is still broken. Sorry I didn’t see it before posting my example. If it’s been broken this long, I wonder if it’s still supported, or should we find an alternate option?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [9 בינואר,‏ 2023,‏ 9:50pm UTC](https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853/38 "2023-01-09T21:50:56Z")

</div>

Thanks for the bump and sorry I missed the initial report @Benjamin_D ! I’ve just made an update that allows the number of tags to be limited again.

[Previous page](https://meta.discourse.org/t/discourse-popular-tag-sidebar/107853.md?page=1)
