Tags:
create new tag
, view all tags

Question

The questions is, how to make a WikiWord in current topic be linked only once? (automatically) 

The logic would be like:

If

“any WikiWord in current topic presents more than once”

Then

“keep only the 1st occurrence of that WikiWord be linked in current topic”

I understand I can use "<noautolink>" tag, but if the WikiWord is mentioned many times in one topic, the manual coding will need much effort...

Environment

TWiki version: TWikiRelease04x01x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Performance

-- CoriaXu - 19 May 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This could be done with a plugin:

  • At rendering time, build up a hash of all WikiWords on a page
  • Escape the WikiWord if the word already exists in the hash

-- PeterThoeny - 23 Jul 2008

 
Change status to:
Topic revision: r2 - 2008-07-23 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.