# Add Category Column

**URL:** https://meta.discourse.org/t/add-category-column/103893
**Category:** Theme component
**Tags:** official, category-column
**Created:** [December 10, 2018, 12:14pm UTC](https://meta.discourse.org/t/add-category-column/103893 "2018-12-10T12:14:06Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [December 10, 2018, 12:14pm UTC](https://meta.discourse.org/t/add-category-column/103893/1 "2018-12-10T12:14:06Z")

</div>

| | | |
| --- | --- | --- |
| :discourse2: | **Summary** | **Add Category Column** adds a category column to the topic lists. |
| 👓 | **Preview** | [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/add-category-column) |
| 🛠 | **Repository Link** | [https://github.com/discourse/discourse-add-category-column](https://github.com/discourse/discourse-add-category-column) |
| 📖 | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

Install this theme component

> [@](#):
>
> :discourse2: As this is an #official theme component maintained by the Discourse team, #Support, #Contribute > Bug, #Contribute > UX, and #Contribute > Feature requests can be made in the respective categories here on Meta, and tagged with the appropriate theme component tag. Click on a link below to get one started. 👍
> 
> [❓&nbsp; **Support**](https://meta.discourse.org/new-topic?category_id=6&tags=category-column "Ask for support on configuring and using Add Category Column") [🐛&nbsp; **Bug**](https://meta.discourse.org/new-topic?category_id=1&tags=category-column "A bug report means something is broken, preventing normal/typical use of the theme component") [👀&nbsp; **UX**](https://meta.discourse.org/new-topic?category_id=9&tags=category-column "Discussion about the user interface of Add Category Column, and how features are presented (including language and UI elements)") [💡&nbsp; **Feature**](https://meta.discourse.org/new-topic?category_id=2&tags=category-column "Discussion about how existing Add Category Column features can be improved or enhanced, and how proposed new features could work")

Some time ago, categories were displayed in the topic lists as a column. [After discussing its usefulness](https://meta.discourse.org/t/the-topic-list-doesnt-need-a-category-column/101352), the dedicated column for categories seemed excessive and it was removed in favor of placing the category under the topic title. There is plenty to gain from this change (see the above linked topic for details), however, some have voiced that they prefer having the category column. This component is for those who may be struggling with the changes.

 ![category-column](https://global.discourse-cdn.com/meta/original/3X/2/d/2da67b07ac4fbe6eda39bca011cb534f841844c5.png)

> :discourse2: **Hosted by us?** Theme components are available to use on our Standard, Business, and Enterprise plans.

> Last edited by @JammyDodger 2024-06-11T08:06:49Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![Dmitry\_Krasnoperov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_krasnoperov/32/65079_2.png) [@Dmitry\_Krasnoperov](https://meta.discourse.org/u/Dmitry_Krasnoperov)
#### Post date: [February 15, 2022, 11:05am UTC](https://meta.discourse.org/t/add-category-column/103893/23 "2022-02-15T11:05:38Z")

</div>

Hello,  
There are some warnings/errors after update to 2.9.0.beta2.  
Maybe it was before 2.9.0 as I never pay attention earlier.

```plaintext
[Warning] [THEME 17 'Add Category Column'] – "To prevent errors in tests, add a `pluginId` key to your `modifyClass` call. This will ensure the modification is only applied once." (application-02f34826699ddd1471a048c99dbf7e34.js, line 4135)

[Warning] [THEME 17 'Add Category Column'] – "Deprecation notice: The displayNewPosts property of the topic model is deprecated" (vendor-3037b934520b46fd8178e08db12bbeaa.js, line 4759, x30)

```

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [February 15, 2022, 12:22pm UTC](https://meta.discourse.org/t/add-category-column/103893/24 "2022-02-15T12:22:48Z")

</div>

[I sent a PR](https://github.com/discourse/discourse-add-category-column/pull/2) to fix this and add some updates.

---

<div class="post-metadata">

### Author: ![Dmitry\_Krasnoperov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_krasnoperov/32/65079_2.png) [@Dmitry\_Krasnoperov](https://meta.discourse.org/u/Dmitry_Krasnoperov)
#### Post date: [February 15, 2022, 2:28pm UTC](https://meta.discourse.org/t/add-category-column/103893/25 "2022-02-15T14:28:11Z")

</div>

Thanks! Hope it will be reviewed in mean time 🙂

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [February 17, 2022, 3:59am UTC](https://meta.discourse.org/t/add-category-column/103893/26 "2022-02-17T03:59:51Z")

</div>

Thanks for the heads up @Dmitry_Krasnoperov and for the PR @Don! The PR has been merged. I fixed up a couple minor things with the component as well while I was looking at it.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [January 12, 2024, 1:00pm UTC](https://meta.discourse.org/t/add-category-column/103893/27 "2024-01-12T13:00:24Z")

</div>

This theme component was broken because it overwrote the topic-list-header and topic-list-item templates and it hadn’t been updated in a while. I did still show the extra column but bulk selection of topics didn’t work.

I’ve reworked it so it uses raw plugin outlets so it’s more future proof and easier to maintain.

I’ve made a PR [here](https://github.com/discourse/discourse-add-category-column/pull/6).

---

<div class="post-metadata">

### Author: ![tessus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tessus/32/126320_2.png) [@tessus](https://meta.discourse.org/u/tessus)
#### Post date: [February 20, 2024, 11:08pm UTC](https://meta.discourse.org/t/add-category-column/103893/30 "2024-02-20T23:08:10Z")

</div>

Hmm, it seems that there is an issue on mobile:

> [@Forum hosted by Discourse broken on mobile](https://meta.discourse.org/t/forum-hosted-by-discourse-broken-on-mobile/296107):
>
> Since a few days our mobile version of the forum is broken. Somehow it displays the category twice, which pushes the rest of the content. Any idea what might be the issue? We’re on an open source plan managed by Discourse so we didn’t do any changes ourselves.

After Laurent deactivated the component the problem was gone. Is this a known problem?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [February 21, 2024, 12:19am UTC](https://meta.discourse.org/t/add-category-column/103893/31 "2024-02-21T00:19:12Z")

</div>

It looks like this column should be added on mobile view.

[https://github.com/discourse/discourse-add-category-column/blob/main/javascripts/discourse/raw-views/add-category-column-list-item.js](https://github.com/discourse/discourse-add-category-column/blob/main/javascripts/discourse/raw-views/add-category-column-list-item.js)

It misses likely a `&& this.site.mobileView` here 🤔

It seems to be a regression from this update that eliminates overwriting templates.

[https://github.com/discourse/discourse-add-category-column/pull/6](https://github.com/discourse/discourse-add-category-column/pull/6)

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [February 21, 2024, 12:21am UTC](https://meta.discourse.org/t/add-category-column/103893/32 "2024-02-21T00:21:37Z")

</div>

Thanks for the report @tessus! As @Arkshine mentioned, this slipped under the radar after the last fix.

This should take care of it after it’s been reviewed and merged:

[https://github.com/discourse/discourse-add-category-column/pull/7](https://github.com/discourse/discourse-add-category-column/pull/7)

---

<div class="post-metadata">

### Author: ![tessus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tessus/32/126320_2.png) [@tessus](https://meta.discourse.org/u/tessus)
#### Post date: [February 21, 2024, 1:25am UTC](https://meta.discourse.org/t/add-category-column/103893/33 "2024-02-21T01:25:17Z")

</div>

Perfect, thanks.

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [February 22, 2024, 11:43am UTC](https://meta.discourse.org/t/add-category-column/103893/34 "2024-02-22T11:43:42Z")

</div>

Just a quick note to mention that the fix has been merged 🚀 You can go ahead and update the component. Thanks for the report @tessus!

---

<div class="post-metadata">

### Author: ![tessus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tessus/32/126320_2.png) [@tessus](https://meta.discourse.org/u/tessus)
#### Post date: [February 22, 2024, 5:47pm UTC](https://meta.discourse.org/t/add-category-column/103893/35 "2024-02-22T17:47:10Z")

</div>

Thanks for the fix!

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [May 12, 2024, 11:45am UTC](https://meta.discourse.org/t/add-category-column/103893/36 "2024-05-12T11:45:57Z")

</div>

Over in [Display a category as a calendar by scheduled Topic-timer dates - #4 by manuel](https://meta.discourse.org/t/display-a-category-as-a-calendar-by-scheduled-topic-timer-dates/296752/4) I was looking for a way to see topic timers, in a category’s listing of topics. Trying to see/track content publication scheduling.

@manuel mentioned that this component, if it had a column to sort by topic-timers, would also get me what I wanted: A sorted listing of when a bunch of topics where going to publish.

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [May 28, 2024, 11:01am UTC](https://meta.discourse.org/t/add-category-column/103893/37 "2024-05-28T11:01:08Z")

</div>

Thank you very much for your Theme component, but I encountered some display errors. When I return to the home page, the category column is no longer displayed. Moreover, when I load more pages, the category is no longer displayed. Watch my video:

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/f/0/cf0c1d705c255cc5fe1f976031cb0a29f5e02843.png)

[![](https://global.discourse-cdn.com/meta/original/4X/4/0/a/40ae937dbdb4116e7722fbe5aac62c5c8d5a4730.jpeg "error display Category Column Discourse Component") ](https://www.youtube.com/watch?v=zJaiNIvUeJs)

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [December 5, 2024, 1:33pm UTC](https://meta.discourse.org/t/add-category-column/103893/38 "2024-12-05T13:33:10Z")

</div>

Can you dev for Add Group Tag Column? 4 to 9 Group tag Column?

> [@Multi menu select Group tags and Display with table view (Grid by group tag)](https://meta.discourse.org/t/multi-menu-select-group-tags-and-display-with-table-view-grid-by-group-tag/339583):
>
> Here are my requirements: Add a search option based on Group Tags (If possible, allow a min-max range for filtering; if not, that’s fine). Display the topic list in a table format. (Grid by group tag)

Thank you!

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [February 12, 2025, 5:40pm UTC](https://meta.discourse.org/t/add-category-column/103893/39 "2025-02-12T17:40:20Z")

</div>

Seems like the plugin is not compatible with AI Related searches. It messes the table header for Suggested / Related (AI) topics.

 ![The image displays a bar chart with two categories: "Suggested" and "Viewed Related Activity," where the bar under "Suggested" is colored green and labeled, while the "Category" field is empty. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/4/1/e/41ed2ae91f221579fe03724e7ea64897d3596e1a.png)

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [April 16, 2025, 7:04am UTC](https://meta.discourse.org/t/add-category-column/103893/40 "2025-04-16T07:04:01Z")

</div>

Hi, thank you for the great theme component!

I’m using Add Category Column to display category names in the topic list. However, I’m facing two issues I’d love to resolve:

Long category names are being cut off – they don’t wrap or expand, so users can’t read the full category name. Is there a way to make the column auto-expand, wrap text, or show the full name on hover?

How can I reorder the columns?  
I’d like to change the layout to show the Category column first, followed by Topic title, then User, Views, Date, etc.

Any suggestions or CSS overrides would be really appreciated. Thank you, Discourse team!

 ![The image shows a forum topic list with discussions about Vietnam milk facts, property circulars, and a category focused on the online topic from 5 days ago. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/8/e/7/8e787a53c4dbd0ecf570741deb777c6b0ca5d34a.jpeg)
