Mentioning Categories instead of Groups?

Nooo it is supposed to appear as moderation. The postfix should only appear in the composer. Off to figure out why…

1 Like

https://github.com/discourse/discourse/commit/c99775ebdb6324459dcfc65d32bff475bec112b3
https://github.com/discourse/discourse-tagging/commit/ea1c930ba7703e43e1aa144a63b7f48fff5218c9

Fixed and deploying soon… I added more tests so this shouldn’t break again!

6 Likes

Yay checkout the new tags hashtag

2 Likes

Testing…testing… #tagging::tag

1 Like

There’s a problem with the autocomplete popup. It doesn’t disappear when I hit backspace and delete the # character.

7 Likes

O my… Let me have a look tomorrow.

2 Likes

Fixed!

https://github.com/discourse/discourse/pull/3994

It was actually an autocomplete bug XD

4 Likes

A post was merged into an existing topic: Long category names overlap with replies on suggested topics list

Category mentions do not works if the category or subcategory have letters (the last in my case) with accents.
See:

Plus I have some problems with css but I open another thread for this.

I have some problems with tag mentions too. The autocomplete is very slow in some case and it do not appears after I type the underscore and the first letter of the second word.
See:

2 Likes

This is going to be tricky… Unlike usernames, category names and slugs have no restriction on what letters are being used. Right now the dialect only allows \w which only covers a-zA-z0-9_. I did work on a similar issue once and I ended up having to import a bunch of letter character classes.

Hmm no repro for this. I do see in your gif that the autocomplete doesn’t appear for feat. Do you have a site I can access to try it for myself?

Ah thanks for this report. Fixed in

4 Likes

I’m surprised slugs are less restricted than usernames. All-around stricter slugs seems logical to me. Am I missing something?

2 Likes

Less strict in the sense that the character letters classes are not restricted to just a-zA-z0-9_ :smile:

Is there a simple way to add a post/topic to the category/tag it is mentioning?

No more simple than what you can do already: Go to the top of the topic and edit the category.

:)! han, it seems that i make it the wrong way again.

I want to be able to tag posts and not just topics, i’m not a full-stack developer, and currently i’m trying to figure out how i can do this without much need to write a complex code.

an alternative which came to my mind was to use this mentioning-tag feature, create some tags, and let the users use hashtags as usual. but when one mentions a tag, the post/topic doesn’t appear for in teh tag-listed topics.

now the question, is there a simple way to add a post to the tag/category it’s mentioning?

Sorry, no, this isn’t on our roadmap.

1 Like

I think of the “mentions” as a kind of convenient short-cut.

Any kind of scheme that I can think of to target specific posts would need ways to both target the topic id and the post id eg.
#cat_id-topic_id-post_id

By the time all that is determined, it would be a lot easier to simply link to the post.

1 Like