Show all tags in drop-down

AI-generated summary

Show all tags in drop-down

The discussion revolves around displaying all available tags in the drop-down menu, even if they are unused. acinonyxjubatus inquires about the possibility of showing all tags simultaneously, and jomaxro explains that the number of tags in the dropdown is controlled by the max tags in filter list site setting.

However, even after setting this limit to 50, acinonyxjubatus finds that the dropdown only appears when a topic with tags is created, and only displays those specific tags. jomaxro suggests creating topics in the #staff category with the desired tags to populate the filter, but acinonyxjubatus discovers that this workaround only works for staff members, not other users.

jomaxro acknowledges the limitation and is unsure of a solution, as the functionality of displaying unused tags has not been a priority.

By default tags are sorted in popularity order.
Is it possible to show all tags simultaneously in drop-down?
I mean even unused tags.

1개의 좋아요

The number of tags in the dropdown is controlled via a site setting. max tags in filter list

Go to example.com/admin/site_settings/category/all_results?filter=tags%20in%20filter%20list

2개의 좋아요

max tags in filter list is set to 50. However, as I have fresh new install of discourse without any topics, I can’t even see tags dropdown. When I add topic with tags, dropdown appears with that tags only.
What I want is to see dropdown with all available (or at least 50 of them!) tags no matter what.

Tags are dynamic - as soon as they’re not used on a topic anymore, they’re “deleted”. If you want the tag filter to be populated at all times, you’ll need to have the tags used somewhere. I’d suggest the following:
Create a number of topics in your Staff category. If you want 50 tags, with the default limit of 5 create 10 topics. Add the tags to those topics, and you should see the filter populated.

2개의 좋아요

Suggested workaround not working as long as staff topics are visible to staff members only, so tags in dropdown appears for staff members, but not for other users. For them dropdown is still empty ((

Hmm, you’re right. I didn’t test that before I suggested it.

I’m not sure what else to suggest, we’ve never worried about having the dropdown populated if a tag isn’t in use.