Preset a tag in create-new-topic composer

After tags are enabled, users can add tags on their topics. My extra scenario is to preset a language tag based on user’s locale setting when the topic composer is opened.

When a user is using the URL like: meta.example.org/tag/cn, the cn tag will be preset. I want the same thing but to preset the tag based on user’s settings. Is it feasible to implement this feature by a plugin?

Anyone can help? :cry:

I don’t think something like this exists for tags, but it does exist for categories: Default Composer Category component. The code for this component is very small, if you’re familiar with JavaScript you should be able to figure out how to do the same for tags.

2 Likes

The GitHub - discourse/discourse-preset-topic-composer: preset composer seems to provide this…

1 Like