I'm creating a site that deals with investing and I'd like to create a marker that you could wrap a stock symbol (something like [stock]GOOG[stock]) and it would be rendered as a link with the text "GOOG" so that you could click on it and get a current stock quote. The idea is that you could type this anywhere on the site (forums, comments, blogs, etc). This would behave similar to the characters that get replaced with "smileys" upon rendering.

I was thinking of maybe looking at some of the translation modules but I'm not sure that they would work for this purpose.

Are there any modules out there that do this already?

Thanks!

~ Red Beard

Comments

vm’s picture

I believe you want to investigate input formats and filters.

dman’s picture

reptag does all this for you. User-defined markdown plus a bunch of tokens and Drupal element embeds.

.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |

Red_Beard’s picture

Thanks, it looks like I can code my own plugin to reptag to make it do what I want.