标签名称限制过严

I was trying to move completely away from categories on my forum BUT I discovered tags were way too restrictive with regard to their names. No spaces, 20 characters maximum, completely frustrated my desire. I read somewhere that discourse was trying to move away from categories into tags. This is an idea I support.

I also support adding a twiter like #hashtag feature within posts to increase awesomeness.

1 个赞

Kinda. We’re not moving away from categories, but we do recommend restricting the use of categories to situations where they are actually necessary. More information at It’s Time We Talked About Tags

3 个赞

Yeah, that’s the article.

Still, one way to make people use less categories is make tags more flexible.

You can set the max length for tags

https://{your-site}/admin/site_settings/category/all_results?filter=max%20tag

5 个赞

Tags behave like category stubs, which can’t have spaces either.

The 20 character is there because otherwise the tag selector begins to look pretty ridiculous.

If legal libraries can build their whole taxonomies using those limitations the rest of us have no excuse.

1 个赞

This is it…Solved!

3 个赞

有没有办法修改标签被截断前的长度?
长标签名称会显示省略号。例如,“this-is-a-long-tag-name” 会显示为 “this-is-a-lo…”,即使在标签页面上也是如此。如何更改此限制?愿意修改源代码并重新构建。

这可以通过在“管理”中编辑“自定义”的 CSS 来实现。

非常感谢,Jeff。
我具体需要修改哪个属性?或者,如果你能提供一个操作指南,那就更好了。
感谢你的帮助。

如果标签名称和标签别名能像分类那样分别处理就好了,即别名与名称独立。

例如,一个标签可以拥有如下设置:
名称:Awesome Stuff
别名:awesome-stuff

而目前的情况是:
名称 & 别名:awesome-stuff

2 个赞