How do I create a plugin with autotagging/mentioning from custom source


(Lenin Raj Rajasekaran) #1

I have an endpoint that can get a search term and return a list of matching resources.

Currently, when I type like @Sachin, I get suggestions for users within my Discourse matching Sachin. But I need to write a plugin that can search for “Sachin” in my custom endpoint and provide the same “mentioning” feature, in this Post composer box. I can create a new end point with attributes required by Discourse (like href etc)

How do I go about approaching this feature?