# Display tags by tag group

**URL:** https://meta.discourse.org/t/display-tags-by-tag-group/69967
**Category:** Feature
**Created:** [2017年九月13日 14:26 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967 "2017-09-13T14:26:48Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![abrambailey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abrambailey/32/119786_2.png) [@abrambailey](https://meta.discourse.org/u/abrambailey)
#### Post date: [2017年九月13日 14:26 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/1 "2017-09-13T14:26:49Z")

</div>

Here’s our [page for tags](https://forum.hearingtracker.com/tags). What I would like to do is display these tags (to users) in the groups that I have created on the backend. Example:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/5/f59f9f1cb9f367f6bdaa49137852ea2b46158c11.png)

_Note. There seems to be a styling issue on this page with the height of this box._

Also, is there some way to order this list, or group the tags in this list?

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/d/1d97065f9d082b77b00f67e3fe073b66a0fb698a.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年九月13日 17:09 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/2 "2017-09-13T17:09:58Z")

</div>

It is in tag frequency order, see this page

[https://meta.discourse.org/tags](https://meta.discourse.org/tags)

note that page matches the order of display in the drop-down exactly.

---

<div class="post-metadata">

### Author: ![abrambailey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abrambailey/32/119786_2.png) [@abrambailey](https://meta.discourse.org/u/abrambailey)
#### Post date: [2017年九月14日 01:29 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/3 "2017-09-14T01:29:59Z")

</div>

Thanks Jeff, sorry I shouldn’t have lumped 2 questions into one. I’m sure you are working fast and missed what I was asking. I’m looking for:

1. How can I display (to users) tags by tag group on the /tags page?
2. How can I group the tags in the tag drop down (all tags) based on my tag groups?

Thanks!

---

<div class="post-metadata">

### Author: ![abrambailey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abrambailey/32/119786_2.png) [@abrambailey](https://meta.discourse.org/u/abrambailey)
#### Post date: [2017年九月14日 21:50 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/4 "2017-09-14T21:50:22Z")

</div>

So I take it this is not possible / not on the roadmap?

---

<div class="post-metadata">

### Author: ![scombs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scombs/32/48616_2.png) [@scombs](https://meta.discourse.org/u/scombs)
#### Post date: [2017年九月17日 19:39 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/5 "2017-09-17T19:39:11Z")

</div>

The current workaround would be to select this option in Settings

> Show tags in alphabetical order. Default is to show in order of popularity.

and use tags like **taggroup-tagname**

Would be nice to have a setting for **Show tag groups on tag page**

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2017年九月17日 23:57 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/6 "2017-09-17T23:57:42Z")

</div>

> [@abrambailey](#):
>
> How can I display (to users) tags by tag group on the /tags page?

🤔

My question back to you is: why did you create the tag groups?

Have a look at [this /tags page](https://community.cartalk.com/tags). It’s showing the tags according to their relationship to the categories. The only use for tag groups right now is to restrict their use in categories, so we show the category-to-tags relationships on the /tags page. But it sounds like you haven’t defined those relationships.

I guess you created tag groups for cosmetic reasons, but we don’t currently have a way to show that.

> [@abrambailey](#):
>
> How can I group the tags in the tag drop down (all tags) based on my tag groups?

It’s not possible either. How do you imagine differentiating the groups in the dropdown?

---

<div class="post-metadata">

### Author: ![abrambailey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abrambailey/32/119786_2.png) [@abrambailey](https://meta.discourse.org/u/abrambailey)
#### Post date: [2017年九月18日 00:23 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/7 "2017-09-18T00:23:41Z")

</div>

Thanks for the response Neil. A lot of users use the tags page as a jumping off place to explore content on the site, and since we have a few broad categories, I thought it would be helpful to organize the tags under sub headings for our users. Organizing the dropdown is less of a priority, but same situation there.. I imagined tags being nested under their group names, etc.

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [2017年十月28日 15:09 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/8 "2017-10-28T15:09:40Z")

</div>

is there any setting to show the category-to-tags relationship in tag page?

we have tag groups and some of them are restricted in categories, but in the tag page no organization is shown.

**update** :

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/3/c3d8c334750c3fbfb0cc443339cd01615d362720.png)

if an admin restricts some tags in a category, then the category-tag relation is shown organized in the tag page, **but** if he restricts tag-groups for a category, the category-tag relation is not shown in the tag page.

e.g. in the above image, those tags in red, will be organized in the tag page under the category name, but the tags in the tag-groups in green box will not.

I’m not sure if this is a bug or not, but I think tag-groups are to help admins handling large amount of tags.

and it’d be good if the later is also possible for organization of tag-page. otherwise admins need to select lots of tags in the category setting.

@neil

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2017年十月30日 16:05 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/9 "2017-10-30T16:05:12Z")

</div>

If you allow some tag groups in all your categories except one, then should the tag lists duplicate them under each category on the tags page?

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [2017年十月30日 19:00 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/10 "2017-10-30T19:00:09Z")

</div>

this can happen for tags as well. in the tag case, they’re duplicated under each category. can’t it be like tag-case?

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2017年十月30日 19:07 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/11 "2017-10-30T19:07:43Z")

</div>

Hmm, this would be a disaster at Car Talk where all car makes and models would be duplicated under most of their categories…

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [2017年十月30日 19:17 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/12 "2017-10-30T19:17:41Z")

</div>

you’re right, it’d be a disaster. what if one shows the below relation in the tag page instead of category-tag relation:

> [@scombs](#):
>
> taggroup-tagname

p.s.: I think I’m missing something. I’ve tried repeated tags restricted to different categories; and they’re shown under each category in the tag-page. perhaps Car-Talk is using tag groups to hide repeated tags in the tag page.

---

<div class="post-metadata">

### Author: ![dalerka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dalerka/32/120265_2.png) [@dalerka](https://meta.discourse.org/u/dalerka)
#### Post date: [2017年十二月25日 06:47 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/13 "2017-12-25T06:47:36Z")

</div>

Showing _tags by tag groups_ is very important for our forum where we have over 200 tags (e.g. “countries”, “fields”, “criteria” etc.).

Currently we have a huge alpha-sorted list mixing countries and other tags. So, I have to keep a separate topic in the _Feedback_ category like _“List of all tags you can use”_ (by groups), but keeping this topic in sync with the _/tags_ page is a chore.

The proposed _cosmetic_ change on a _/tags_ page can significantly improve both UX and maintenance.  
Please, consider adding this feature. 🙌✌

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年十二月25日 07:30 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/14 "2017-12-25T07:30:02Z")

</div>

> [@scombs](#):
>
> Would be nice to have a setting for Show tag groups on tag page

Bear in mind that

> [@neil](#):
>
> **The only use for tag groups right now is to restrict their use in categories** , so we show the category-to-tags relationships on the /tags page

So maybe we can do something to improve this page layout in 2.0 @neil?

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2017年十二月26日 18:55 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/15 "2017-12-26T18:55:51Z")

</div>

Sure, we can add a setting to render the /tags page with tag groups. Added to my 2.0 list.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2018年一月12日 22:28 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/17 "2018-01-12T22:28:36Z")

</div>

I added a setting to show tags in tag groups on the /tags page: `tags listed by group`. @dalerka Please give it a try on your site.

---

<div class="post-metadata">

### Author: ![dalerka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dalerka/32/120265_2.png) [@dalerka](https://meta.discourse.org/u/dalerka)
#### Post date: [2018年一月13日 06:58 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/18 "2018-01-13T06:58:25Z")

</div>

Works and looks great! Thank you, this is one of the best gifts for this year! 🎄🎉🙂

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [2018年一月14日 18:41 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/19 "2018-01-14T18:41:18Z")

</div>

> [@neil](#):
>
> Sure, we can add a setting to render the /tags page with tag groups

[Looks great!](https://se23.life/tags)

 ![51](https://global.discourse-cdn.com/meta/original/3X/2/2/22027e6f75395d4c3db26f217a1ad2f9aed29ce2.png)

Many thanks @neil

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [2018年一月14日 19:09 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/20 "2018-01-14T19:09:57Z")

</div>

What are you doing to style those tags with colors and icons?

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [2018年一月14日 19:28 UTC](https://meta.discourse.org/t/display-tags-by-tag-group/69967/21 "2018-01-14T19:28:41Z")

</div>

> [@mcwumbly](#):
>
> What are you doing to style those tags with colors and icons?

Instructions here: [(Superseded) Add a custom fontawesome icon and color to your tag](https://meta.discourse.org/t/add-a-custom-fontawesome-icon-to-your-tag/67881)

[下一頁](https://meta.discourse.org/t/display-tags-by-tag-group/69967.md?page=2)
