Question
I'm not sure if this is for support or codev actually, but I'm not a developer so I'll try here first. Sorry if this is the wrong place.
SO -- what am I trying to do?
I want to have a Glossary Topic.
This topic will contain a list of definitions for words used throughout my wiki. It will be formatted as a standard definition list in Wiki Markup.
HOWEVER, the unique thing about this is that this topic will be autolinked. Meaning:
Every time one of the terms which are defined in the glossary occurs somewhere in the Wiki, it gets automatically linked to its glossary definition, and a small graphical icon appears next to it to show that the link leads to a glossary definition.
The auto-linking should happen only in the first time the term appears in that article -- only the first occurance. This way, if the word "the" is defined in the glossary, it only gets linked once in the whole article, and so the article doesn't look like a jumble of links and glossary icons.
Does anyone have an idea how can I do this? This isn't autolinking for the whole web -- this is just to one topic, and just to the definitions in the def list of that topic.
Ideas, anyone?
Environment
--
ErezZukerman - 17 Apr 2005
Answer
This is a super idea! I'll assume you checked there isn't something to do it already in the Plugins web.
If not, and if I was you I'd write a plugin to do it. In the
commonTagsHandler simply search the text for the words in your wordlist and generate a link to the page. You want the wordlist to be loaded really fast, so you might consider adding a beforeSaveHandler to generate a cache of the definition topic that just contains the terms, possibly with all plural forms.
I'm setting this to answered, though it's obviously something you need to answer yourself - please move future discussion to Codev. As you are not a developer you probably need to try to raise some interest there, in order to get this built for you.
--
CrawfordCurrie - 17 Apr 2005