Auto-linking pre-defined keywords in journal text
Short, concise description of the idea
The user should be able to define a list of keywords and associated URLs to link them to.
Full description of the idea
The user should be able to define a list of key words or phrases (hereafter "keyphrase") and an associated URL for each. Either when the user's journal entry is published (static mode) or when the user's journal entry is displayed (dynamic mode), any keyphrases that match entries in the users' list would be automatically converted into HTML "a href" and "/a" tags to the associated URL wrapping the keyphrase. It would also be nice to be able to configure whether the link opens the target URL in a new window or the current window.
For example, I would perhaps associtate the keyword "CAU" to the CAU website, http://www.caughq.org. I could also associate the keyphrase "Computer Academic Underground" to the same URL. Any time "CAU" or "Computer Academic Underground" was submitted to (static mode) or displayed from (dynamic mode) my journal, it would get auto-linked to the associated URL.
- 1. Users that regularly link to other sites, blogs, etc. can forego entering in the HTML link code while composing each journal entry, saving time and keystrokes. Instead, they just enter the URL once, in their keyphrase list.
- 2. Easier access to references and external resources for users reading journal entries.
An ordered list of problems/issues involved
- For massive lists of keywords, "dynamic mode" may be too resource intensive. Thus the option for static mode (parsing is done on journal entry submit and is stored statically). Another option would be to limit the number of allowed keywords.
An organized list, or a few short paragraphs detailing suggestions for implementation
- Hopefully the above description and suggestions to potential problems describe the feature well enough to devise an implementation. If not, reply with questions!