Dynamic replace string to another


#1

Hello

I just installed Discourse, and now it’s time to migrate from anciant forum.

Previous forum had feature I have to add to Discourse.
Is it possible ? :

When a pattern of string is found into a message, string is dynamicly replaced with a link.
I.e:
“You can see on page x” will be replaced by "You can see on <A href="page.php?id=x">page x</a>"
A regex will do that. But where to place it ?

An idea ?
Replace in tables with a batch is not a solution. It must be automaticly when displayed.

Sorry for my poor english…

Many thanks for help


(Jay Pfaffman) #2

You can do this with a plugin.


#3

I have not found the good keywords to find the plugin (poor english :kissing_closed_eyes: )
Any idea about plugin name ?
Many thanks


(Jay Pfaffman) #4

Plugin Tutorial #1 - How to manipulate the text in the composer? is a good place to start.

DOI resolver updated would be an excellent example of it weren’t broken.

If you have a budget you can post in #marketplace.