How to increase tag description length?

Is it possible to increase this from 280 characters?

Coded as:

validates :description, length: { maximum: 280 }

here:

https://github.com/discourse/discourse/blob/main/app/models/tag.rb

Hi Richard,

The max tag length site setting controls the maximum number of characters that can be used in a single tag.

You should be able to use this setting to increase the number of characters that you can have on a tag, up to a maximum of 2,000,000,000 characters!

I hope that helps. :slightly_smiling_face:

Thanks Alex, is that setting not for the tag_title though?

I’m looking for a way to increase the length of the tag_description…

The tag description length is hardcoded into Discourse, so if you wanted to change this value you would need to edit that line in the code on your Discourse instance and then rebuild Discourse.

cd /var/discourse
./launcher rebuild app

Alternatively, you could create a plugin to expose that setting on the admin settings menu, and then update it as needed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.