PDA

View Full Version : Glossary tweak


SwizzleSkids
11-15-2004, 05:53 PM
I know the answer to this will probably be "not without a $%@!-load of programming" but I thought I'd give it a try... :D

Is there a way to highlight and link a glossary word to it's definition only the first time it appears in an article? Some of our articles are ending up with every other word in green text.

Here's hoping...

amitos
11-16-2004, 02:39 AM
Hmm, weird coz the green text appears only one time for articles on my site. It does however appear multiple times on the blog section.

amit

John (Interspire Staff)
11-16-2004, 11:20 PM
Hi SwizzleSkids,

The code is in the AddGlossaryDefinitions function on line 251. All you need to do is remove the "foreach (Match match in matches)" loop and add the code to get just get the first match in the collection so it can be replaced.

SwizzleSkids
11-29-2004, 06:20 PM
The code is in the AddGlossaryDefinitions function on line 251. All you need to do is remove the "foreach (Match match in matches)" loop and add the code to get just get the first match in the collection so it can be replaced.

John - thanks for the reply. Where is the file I need to edit? the "AddGlossaryDefinitions" function? I couldn't find anything named this anywhere.